Commit d22fdd2d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent e5820468
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#ifdef HAVE_DYNAMIC_PLUGINS #ifdef HAVE_DYNAMIC_PLUGINS
/* Sub-version number /* Sub-version number
* (only used to avoid breakage in dev version when cache structure changes) */ * (only used to avoid breakage in dev version when cache structure changes) */
#define CACHE_SUBVERSION_NUM 33 #define CACHE_SUBVERSION_NUM 34
/* Cache filename */ /* Cache filename */
#define CACHE_NAME "plugins.dat" #define CACHE_NAME "plugins.dat"
...@@ -225,7 +225,7 @@ static int vlc_cache_load_config(module_config_t *cfg, block_t *file) ...@@ -225,7 +225,7 @@ static int vlc_cache_load_config(module_config_t *cfg, block_t *file)
LOAD_ALIGNOF(*cfg->list.i); LOAD_ALIGNOF(*cfg->list.i);
} }
else else
LOAD_IMMEDIATE(cfg->list_cb_name); LOAD_STRING(cfg->list_cb_name);
LOAD_ARRAY(cfg->list.i, cfg->list_count); LOAD_ARRAY(cfg->list.i, cfg->list_count);
} }
...@@ -547,7 +547,7 @@ static int CacheSaveConfig (FILE *file, const module_config_t *cfg) ...@@ -547,7 +547,7 @@ static int CacheSaveConfig (FILE *file, const module_config_t *cfg)
SAVE_ALIGNOF(*cfg->list.i); SAVE_ALIGNOF(*cfg->list.i);
} }
else else
SAVE_IMMEDIATE (cfg->list_cb_name); SAVE_STRING(cfg->list_cb_name);
for (unsigned i = 0; i < cfg->list_count; i++) for (unsigned i = 0; i < cfg->list_count; i++)
SAVE_IMMEDIATE (cfg->list.i[i]); SAVE_IMMEDIATE (cfg->list.i[i]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment