Commit f74645ce authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

modules: initialize static modules at the same time as dynamic ones

parent 74486e6b
...@@ -112,8 +112,6 @@ void module_InitBank (void) ...@@ -112,8 +112,6 @@ void module_InitBank (void)
module_t *module = module_InitStatic (vlc_entry__main); module_t *module = module_InitStatic (vlc_entry__main);
if (likely(module != NULL)) if (likely(module != NULL))
module_StoreBank (module); module_StoreBank (module);
module_InitStaticModules();
config_SortConfig (); config_SortConfig ();
} }
modules.usage++; modules.usage++;
...@@ -180,15 +178,16 @@ size_t module_LoadPlugins (vlc_object_t *obj) ...@@ -180,15 +178,16 @@ size_t module_LoadPlugins (vlc_object_t *obj)
{ {
/*vlc_assert_locked (&modules.lock); not for static mutexes :( */ /*vlc_assert_locked (&modules.lock); not for static mutexes :( */
#ifdef HAVE_DYNAMIC_PLUGINS
if (modules.usage == 1) if (modules.usage == 1)
{ {
module_InitStaticModules ();
#ifdef HAVE_DYNAMIC_PLUGINS
msg_Dbg (obj, "searching plug-in modules"); msg_Dbg (obj, "searching plug-in modules");
AllocateAllPlugins (obj); AllocateAllPlugins (obj);
#endif
config_UnsortConfig (); config_UnsortConfig ();
config_SortConfig (); config_SortConfig ();
} }
#endif
vlc_mutex_unlock (&modules.lock); vlc_mutex_unlock (&modules.lock);
size_t count; size_t count;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment