[vlc-commits] Do not cache b_submodule

Rémi Denis-Courmont git at videolan.org
Mon May 9 21:57:25 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon May  9 22:04:37 2011 +0300| [cf7f3bc8e3102fec41060ecdce69f7a183009b1e] | committer: Rémi Denis-Courmont

Do not cache b_submodule

It is always false here.

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

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

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 09cd83b..241efc7 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -58,7 +58,7 @@ static int    CacheLoadConfig  ( module_t *, FILE * );
 
 /* Sub-version number
  * (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 12
+#define CACHE_SUBVERSION_NUM 13
 
 /* Cache filename */
 #define CACHE_NAME "plugins.dat"
@@ -264,7 +264,6 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, const char *dir )
         LOAD_STRING( pp_cache[i]->p_module->psz_capability );
         LOAD_IMMEDIATE( pp_cache[i]->p_module->i_score );
         LOAD_IMMEDIATE( pp_cache[i]->p_module->b_unloadable );
-        LOAD_IMMEDIATE( pp_cache[i]->p_module->b_submodule );
 
         /* Config stuff */
         if( CacheLoadConfig( pp_cache[i]->p_module, file ) != VLC_SUCCESS )
@@ -545,7 +544,6 @@ static int CacheSaveBank (FILE *file, module_cache_t *const *pp_cache,
         SAVE_STRING( pp_cache[i]->p_module->psz_capability );
         SAVE_IMMEDIATE( pp_cache[i]->p_module->i_score );
         SAVE_IMMEDIATE( pp_cache[i]->p_module->b_unloadable );
-        SAVE_IMMEDIATE( pp_cache[i]->p_module->b_submodule );
 
         /* Config stuff */
         if (CacheSaveConfig (file, pp_cache[i]->p_module))



More information about the vlc-commits mailing list