[vlc-commits] modules: initialize static modules at the same time as dynamic ones

Rémi Denis-Courmont git at videolan.org
Fri Sep 28 17:12:47 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 28 18:10:20 2012 +0300| [f74645ce3b38c1156df114808039203ce6fff951] | committer: Rémi Denis-Courmont

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f74645ce3b38c1156df114808039203ce6fff951
---

 src/modules/bank.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index 5d99a6e..9e182c6 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -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++;
@@ -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;



More information about the vlc-commits mailing list