Skip to content

Commit

Permalink
modules: initialize static modules at the same time as dynamic ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Sep 28, 2012
1 parent 74486e6 commit f74645c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/modules/bank.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ void module_InitBank (void)
module_t *module = module_InitStatic (vlc_entry__main);
if (likely(module != NULL))
module_StoreBank (module);

module_InitStaticModules();
config_SortConfig ();
}
modules.usage++;
Expand Down Expand Up @@ -180,15 +178,16 @@ size_t module_LoadPlugins (vlc_object_t *obj)
{
/*vlc_assert_locked (&modules.lock); not for static mutexes :( */

#ifdef HAVE_DYNAMIC_PLUGINS
if (modules.usage == 1)
{
module_InitStaticModules ();
#ifdef HAVE_DYNAMIC_PLUGINS
msg_Dbg (obj, "searching plug-in modules");
AllocateAllPlugins (obj);
#endif
config_UnsortConfig ();
config_SortConfig ();
}
#endif
vlc_mutex_unlock (&modules.lock);

size_t count;
Expand Down

0 comments on commit f74645c

Please sign in to comment.