[vlc-commits] modules: fix list callback serialization/deserialization (fixes #17623)
Rémi Denis-Courmont
git at videolan.org
Thu Nov 10 20:26:30 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 10 21:24:44 2016 +0200| [d22fdd2d377bd12b1eefa5719485e29d6fb356d4] | committer: Rémi Denis-Courmont
modules: fix list callback serialization/deserialization (fixes #17623)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d22fdd2d377bd12b1eefa5719485e29d6fb356d4
---
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