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
d26bac39
Commit
d26bac39
authored
Aug 15, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused module bank parameters
parent
d283a27b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
19 deletions
+11
-19
src/libvlc.c
src/libvlc.c
+7
-7
src/modules/modules.c
src/modules/modules.c
+2
-8
src/modules/modules.h
src/modules/modules.h
+2
-4
No files found.
src/libvlc.c
View file @
d26bac39
...
...
@@ -279,11 +279,11 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
* main module. We need to do this at this stage to be able to display
* a short help if required by the user. (short help == main module
* options) */
module_InitBank
(
p_libvlc
);
module_InitBank
(
);
if
(
config_LoadCmdLine
(
p_libvlc
,
i_argc
,
ppsz_argv
,
NULL
)
)
{
module_EndBank
(
p_libvlc
,
false
);
module_EndBank
(
false
);
return
VLC_EGENERIC
;
}
...
...
@@ -378,7 +378,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if
(
b_exit
)
{
module_EndBank
(
p_libvlc
,
false
);
module_EndBank
(
false
);
return
i_ret
;
}
...
...
@@ -470,7 +470,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
if
(
b_exit
)
{
module_EndBank
(
p_libvlc
,
true
);
module_EndBank
(
true
);
return
i_ret
;
}
...
...
@@ -501,7 +501,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
"that they are valid.
\n
"
);
PauseConsole
();
#endif
module_EndBank
(
p_libvlc
,
true
);
module_EndBank
(
true
);
return
VLC_EGENERIC
;
}
priv
->
i_verbose
=
var_InheritInteger
(
p_libvlc
,
"verbose"
);
...
...
@@ -800,7 +800,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
{
module_unneed
(
p_libvlc
,
priv
->
p_memcpy_module
);
}
module_EndBank
(
p_libvlc
,
true
);
module_EndBank
(
true
);
return
VLC_EGENERIC
;
}
...
...
@@ -1047,7 +1047,7 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
config_AutoSaveConfigFile
(
VLC_OBJECT
(
p_libvlc
)
);
/* Free module bank. It is refcounted, so we call this each time */
module_EndBank
(
p_libvlc
,
true
);
module_EndBank
(
true
);
vlc_DeinitActions
(
p_libvlc
,
priv
->
actions
);
}
...
...
src/modules/modules.c
View file @
d26bac39
...
...
@@ -85,16 +85,13 @@ static module_t * AllocatePlugin( vlc_object_t *, const char *, bool );
static
module_t
*
module_InitStatic
(
vlc_plugin_cb
);
static
void
DeleteModule
(
module_t
**
,
module_t
*
);
#undef module_InitBank
/**
* Init bank
*
* Creates a module bank structure which will be filled later
* on with all the modules found.
* \param p_this vlc object structure
* \return nothing
*/
void
module_InitBank
(
vlc_object_t
*
p_this
)
void
module_InitBank
(
void
)
{
vlc_mutex_lock
(
&
modules
.
lock
);
...
...
@@ -121,14 +118,11 @@ void module_InitBank( vlc_object_t *p_this )
/*vlc_mutex_unlock (&modules.lock);*/
}
#undef module_EndBank
/**
* Unloads all unused plugin modules and empties the module
* bank in case of success.
* \param p_this vlc object structure
* \return nothing
*/
void
module_EndBank
(
vlc_object_t
*
p_this
,
bool
b_plugins
)
void
module_EndBank
(
bool
b_plugins
)
{
module_t
*
head
=
NULL
;
...
...
src/modules/modules.h
View file @
d26bac39
...
...
@@ -112,12 +112,10 @@ module_t *vlc_module_create (void);
module_t
*
vlc_submodule_create
(
module_t
*
module
);
void
vlc_module_destroy
(
module_t
*
);
void
module_InitBank
(
vlc_object_t
*
);
#define module_InitBank(a) module_InitBank(VLC_OBJECT(a))
void
module_InitBank
(
void
);
void
module_LoadPlugins
(
vlc_object_t
*
);
#define module_LoadPlugins(a) module_LoadPlugins(VLC_OBJECT(a))
void
module_EndBank
(
vlc_object_t
*
,
bool
);
#define module_EndBank(a,b) module_EndBank(VLC_OBJECT(a), b)
void
module_EndBank
(
bool
);
int
vlc_bindtextdomain
(
const
char
*
);
...
...
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