[vlc-commits] modules: fix list callback serialization/deserialization (fixes #1763)

Rémi Denis-Courmont git at videolan.org
Thu Nov 10 20:25:41 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 10 21:24:44 2016 +0200| [36dbd2b82ce5a954668e07ebf431d5b5876c7c93] | committer: Rémi Denis-Courmont

modules: fix list callback serialization/deserialization (fixes #1763)

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

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

diff --git a/src/modules/cache.c b/src/modules/cache.c
index 6e4f711..a9ce8ef 100644
--- a/src/modules/cache.c
+++ b/src/modules/cache.c
@@ -57,7 +57,7 @@
 #ifdef HAVE_DYNAMIC_PLUGINS
 /* Sub-version number
  * (only used to avoid breakage in dev version when cache structure changes) */
-#define CACHE_SUBVERSION_NUM 33
+#define CACHE_SUBVERSION_NUM 34
 
 /* Cache filename */
 #define CACHE_NAME "plugins.dat"
@@ -225,7 +225,7 @@ static int vlc_cache_load_config(module_config_t *cfg, block_t *file)
             LOAD_ALIGNOF(*cfg->list.i);
         }
         else
-            LOAD_IMMEDIATE(cfg->list_cb_name);
+            LOAD_STRING(cfg->list_cb_name);
 
         LOAD_ARRAY(cfg->list.i, cfg->list_count);
     }
@@ -547,7 +547,7 @@ static int CacheSaveConfig (FILE *file, const module_config_t *cfg)
             SAVE_ALIGNOF(*cfg->list.i);
         }
         else
-            SAVE_IMMEDIATE (cfg->list_cb_name);
+            SAVE_STRING(cfg->list_cb_name);
 
         for (unsigned i = 0; i < cfg->list_count; i++)
              SAVE_IMMEDIATE (cfg->list.i[i]);



More information about the vlc-commits mailing list