[vlc-devel] commit: modules: Make sure we save all the modules. (Pierre d'Herbemont )

git version control git at videolan.org
Mon Feb 15 01:28:07 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Mon Feb 15 01:23:00 2010 +0100| [a9c6b1f121984d4962617c9da06261c8931d13af] | committer: Pierre d'Herbemont 

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.

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

 src/modules/modules.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/modules.c b/src/modules/modules.c
index 39d3f19..a1eba6b 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 );
     }
 




More information about the vlc-devel mailing list