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
00b8684e
Commit
00b8684e
authored
Nov 22, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix module entry error handling
parent
8dcd943c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
include/modules_inner.h
include/modules_inner.h
+4
-5
src/misc/configuration.c
src/misc/configuration.c
+1
-0
No files found.
include/modules_inner.h
View file @
00b8684e
...
...
@@ -102,7 +102,7 @@ E_(vlc_entry) ( module_t *p_module );
EXTERN_SYMBOL DLL_SYMBOL int CDECL_SYMBOL \
__VLC_SYMBOL(vlc_entry) ( module_t *p_module ) \
{ \
int i_shortcut = 1
;
\
int i_shortcut = 1
, res;
\
size_t i_config = (size_t)(-1); \
module_config_t *p_config = NULL; \
STORE_SYMBOLS; \
...
...
@@ -126,8 +126,7 @@ E_(vlc_entry) ( module_t *p_module );
#define vlc_module_end( ) \
p_submodule->pp_shortcuts[ i_shortcut ] = NULL; \
} \
if (config_Duplicate( p_module, p_config, ++i_config )) \
return VLC_ENOMEM; \
res = config_Duplicate( p_module, p_config, ++i_config ); \
for( size_t i = 0; i < i_config; i++ ) \
{ \
if( p_config[ i ].i_action ) \
...
...
@@ -137,8 +136,8 @@ E_(vlc_entry) ( module_t *p_module );
} \
} \
free( p_config ); \
if
( p_module->p_config == NULL )
\
return
VLC_EGENERIC;
\
if
(res)
\
return
res;
\
(void)i_shortcut; \
return VLC_SUCCESS; \
} \
...
...
src/misc/configuration.c
View file @
00b8684e
...
...
@@ -618,6 +618,7 @@ int config_Duplicate( module_t *p_module, const module_config_t *p_orig,
p_module
->
p_config
[
i
].
pf_callback
=
p_orig
[
i
].
pf_callback
;
}
return
VLC_SUCCESS
;
}
...
...
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