]> git.sesse.net Git - vlc/commitdiff
modules: Make sure we save all the modules.
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Feb 2010 00:23:00 +0000 (01:23 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 15 Feb 2010 00:25:46 +0000 (01:25 +0100)
Previously we were just saving the loaded modules which resulted in zero modules being saved to disk.

src/modules/modules.c

index 39d3f195e747896df2577df303df07518a1944f1..a1eba6ba3dd4cf8f57a1aca64506443e6ba7b4aa 100644 (file)
@@ -866,7 +866,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
         if( !path )
             continue;
 
-        size_t offset = p_module_bank->i_loaded_cache;
+        size_t offset = p_module_bank->i_cache;
         if( b_reset )
             CacheDelete( p_this, path );
         else
@@ -877,8 +877,8 @@ static void AllocateAllPlugins( vlc_object_t *p_this, module_bank_t *p_bank )
         /* Don't go deeper than 5 subdirectories */
         AllocatePluginDir( p_this, p_bank, path, 5 );
 
-        CacheSave( p_this, path, p_module_bank->pp_loaded_cache + offset,
-                   p_module_bank->i_loaded_cache - offset );
+        CacheSave( p_this, path, p_module_bank->pp_cache + offset,
+                   p_module_bank->i_cache - offset );
         free( path );
     }