Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
08b59679
Commit
08b59679
authored
Feb 23, 2010
by
Fabio Ritrovato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lua SD: don't fail the whole probe if a script fail
parent
27d5a2c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/misc/lua/vlc.c
modules/misc/lua/vlc.c
+6
-2
No files found.
modules/misc/lua/vlc.c
View file @
08b59679
...
...
@@ -619,13 +619,15 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
if
(
!
L
)
{
msg_Err
(
probe
,
"Could not create new Lua State"
);
return
VLC_EGENERIC
;
free
(
psz_filename
);
goto
error
;
}
luaL_openlibs
(
L
);
if
(
vlclua_add_modules_path
(
probe
,
L
,
psz_filename
)
)
{
msg_Err
(
probe
,
"Error while setting the module search path for %s"
,
psz_filename
);
free
(
psz_filename
);
goto
error
;
}
if
(
luaL_dofile
(
L
,
psz_filename
)
)
...
...
@@ -634,7 +636,9 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
msg_Err
(
probe
,
"Error loading script %s: %s"
,
psz_filename
,
lua_tostring
(
L
,
lua_gettop
(
L
)
)
);
lua_pop
(
L
,
1
);
goto
error
;
free
(
psz_filename
);
lua_close
(
L
);
continue
;
}
char
*
psz_longname
;
char
*
temp
=
strchr
(
*
ppsz_file
,
'.'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment