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

Allow min and max values for string config items

parent a83fefd5
...@@ -319,18 +319,16 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...) ...@@ -319,18 +319,16 @@ static int vlc_plugin_setter (void *plugin, void *tgt, int propid, ...)
case VLC_CONFIG_RANGE: case VLC_CONFIG_RANGE:
{ {
if (IsConfigIntegerType (item->i_type)
|| !CONFIG_ITEM(item->i_type))
{
item->min.i = va_arg (ap, int64_t);
item->max.i = va_arg (ap, int64_t);
}
else
if (IsConfigFloatType (item->i_type)) if (IsConfigFloatType (item->i_type))
{ {
item->min.f = va_arg (ap, double); item->min.f = va_arg (ap, double);
item->max.f = va_arg (ap, double); item->max.f = va_arg (ap, double);
} }
else
{
item->min.i = va_arg (ap, int64_t);
item->max.i = va_arg (ap, int64_t);
}
break; 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