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

Do not store help for submodules in cache

This field is never used for submodules, and in fact there would be no
way to show it in the (current) UI.
parent ab196191
......@@ -237,7 +237,6 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
free (submodule->pp_shortcuts);
LOAD_STRING(submodule->psz_shortname);
LOAD_STRING(submodule->psz_longname);
LOAD_STRING(submodule->psz_help);
LOAD_IMMEDIATE(submodule->i_shortcuts);
if (submodule->i_shortcuts > MODULE_SHORTCUT_MAX)
......@@ -535,7 +534,6 @@ static int CacheSaveSubmodule( FILE *file, const module_t *p_module )
SAVE_STRING( p_module->psz_shortname );
SAVE_STRING( p_module->psz_longname );
SAVE_STRING( p_module->psz_help );
SAVE_IMMEDIATE( p_module->i_shortcuts );
for( unsigned j = 0; j < p_module->i_shortcuts; j++ )
SAVE_STRING( p_module->pp_shortcuts[j] );
......
......@@ -252,6 +252,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
break;
case VLC_MODULE_HELP:
assert (module->parent == NULL);
assert (module->psz_help == NULL);
module->psz_help = va_arg (ap, char *);
break;
......
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