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

Partially cleanup old module_list_cat hack

parent 3a427169
......@@ -326,12 +326,12 @@ enum vlc_config_properties
#define add_module_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE_CAT, name, text, longtext, advc, \
p_callback, value ) \
p_config->min.i = i_subcategory /* gruik */;
change_integer_range (i_subcategory /* gruik */, 0);
#define add_module_list_cat( name, i_subcategory, value, p_callback, text, longtext, advc ) \
add_string_inner( CONFIG_ITEM_MODULE_LIST_CAT, name, text, longtext, \
advc, p_callback, value ) \
p_config->min.i = i_subcategory /* gruik */;
change_integer_range (i_subcategory /* gruik */, 0);
#endif
#define add_integer( name, value, p_callback, text, longtext, advc ) \
......
......@@ -299,7 +299,9 @@ int vlc_config_set (module_config_t *restrict item, int id, ...)
case VLC_CONFIG_RANGE:
{
if (IsConfigIntegerType (item->i_type))
if (IsConfigIntegerType (item->i_type)
|| item->i_type == CONFIG_ITEM_MODULE_LIST_CAT
|| item->i_type == CONFIG_ITEM_MODULE_CAT)
{
item->min.i = va_arg (ap, int);
item->max.i = va_arg (ap, int);
......
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