From a9c6b1f121984d4962617c9da06261c8931d13af Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Mon, 15 Feb 2010 01:23:00 +0100 Subject: [PATCH] modules: Make sure we save all the modules. Previously we were just saving the loaded modules which resulted in zero modules being saved to disk. --- src/modules/modules.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/modules.c b/src/modules/modules.c index 39d3f195e7..a1eba6ba3d 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -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 ); } -- 2.39.2