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

Fix setting "value" of config hints

parent 4f0ce189
......@@ -261,7 +261,8 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
case VLC_CONFIG_VALUE:
{
if (IsConfigIntegerType (item->i_type))
if (IsConfigIntegerType (item->i_type)
|| !CONFIG_ITEM(item->i_type))
{
item->orig.i =
item->value.i = va_arg (ap, int64_t);
......@@ -285,8 +286,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
case VLC_CONFIG_RANGE:
{
if (IsConfigIntegerType (item->i_type)
|| item->i_type == CONFIG_ITEM_MODULE_LIST_CAT
|| item->i_type == CONFIG_ITEM_MODULE_CAT)
|| !CONFIG_ITEM(item->i_type))
{
item->min.i = va_arg (ap, int64_t);
item->max.i = va_arg (ap, int64_t);
......
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