]> git.sesse.net Git - vlc/blobdiff - src/modules/modules.c
Fix incorrect hash size limit
[vlc] / src / modules / modules.c
index 3611b7d04492f7ed1e9fe3aca4a3f4677dfc9554..274807a62e5ecda63b888ea2acb6ca6055c71356 100644 (file)
@@ -157,7 +157,7 @@ static void module_LoadMain( vlc_object_t *p_this );
 
 /* Sub-version number
  * (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 2
+#define CACHE_SUBVERSION_NUM 3
 
 /*****************************************************************************
  * module_InitBank: create the module bank.
@@ -1231,7 +1231,7 @@ static int AllocateBuiltinModule( vlc_object_t * p_this,
 
     /* Now that we have successfully loaded the module, we can
      * allocate a structure for it */
-    p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE );
+    p_module = vlc_module_create( p_this );
     if( p_module == NULL )
     {
         msg_Err( p_this, "out of memory" );
@@ -1785,7 +1785,7 @@ static void CacheLoad( vlc_object_t *p_this )
 
         if( pp_cache[i]->b_junk ) continue;
 
-        pp_cache[i]->p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE );
+        pp_cache[i]->p_module = vlc_module_create( p_this );
 
         /* Load additional infos */
         LOAD_STRING( pp_cache[i]->p_module->psz_object_name );
@@ -1814,10 +1814,7 @@ static void CacheLoad( vlc_object_t *p_this )
 
         while( i_submodules-- )
         {
-            module_t *p_module = vlc_object_create( p_this, VLC_OBJECT_MODULE);
-            vlc_object_attach( p_module, pp_cache[i]->p_module );
-            p_module->b_submodule = VLC_TRUE;
-
+            module_t *p_module = vlc_submodule_create( pp_cache[i]->p_module );
             LOAD_STRING( p_module->psz_object_name );
             LOAD_STRING( p_module->psz_shortname );
             LOAD_STRING( p_module->psz_longname );