]> git.sesse.net Git - vlc/blobdiff - src/interface/main.c
. src/misc/modules.c is in a workable state now.
[vlc] / src / interface / main.c
index 12eb34c1bc798aa7fa332d7187b3768240753bfc..a067959a67d8c7a5339935cf8d632e83da9baa09 100644 (file)
@@ -45,6 +45,7 @@
 #include "mtime.h"
 #include "tests.h"                                              /* TestMMX() */
 #include "plugins.h"
+#include "modules.h"
 #include "playlist.h"
 #include "stream_control.h"
 #include "input_ext-intf.h"
@@ -251,6 +252,20 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     }
     bank_Init( p_main->p_bank );
 
+    /*
+     * Initialize module bank
+     */
+    p_main->p_module_bank = module_CreateBank( );
+    if( !p_main->p_module_bank )
+    {
+        intf_Msg( "Module bank initialization failed" );
+        bank_Destroy( p_main->p_bank );
+        playlist_Destroy( p_main->p_playlist );
+        intf_MsgDestroy();
+        return( errno );
+    }
+    module_InitBank( p_main->p_module_bank );
+
     /*
      * Initialize shared resources and libraries
      */
@@ -312,6 +327,11 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
     }
 #endif
 
+    /*
+     * Free module bank
+     */
+    module_DestroyBank( p_main->p_module_bank );
+
     /*
      * Free plugin bank
      */