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

v4l2: fix cut and paste error

parent 2769bde4
...@@ -464,12 +464,12 @@ static vlc_v4l2_ctrl_t *ControlAddMenu (vlc_object_t *obj, int fd, ...@@ -464,12 +464,12 @@ static vlc_v4l2_ctrl_t *ControlAddMenu (vlc_object_t *obj, int fd,
val.i_int = ctrl.value; val.i_int = ctrl.value;
var_Change (obj, c->name, VLC_VAR_SETVALUE, &val, NULL); var_Change (obj, c->name, VLC_VAR_SETVALUE, &val, NULL);
} }
val.b_bool = query->default_value;
var_Change (obj, c->name, VLC_VAR_SETDEFAULT, &val, NULL);
val.i_int = query->minimum; val.i_int = query->minimum;
var_Change (obj, c->name, VLC_VAR_SETMIN, &val, NULL); var_Change (obj, c->name, VLC_VAR_SETMIN, &val, NULL);
val.i_int = query->maximum; val.i_int = query->maximum;
var_Change (obj, c->name, VLC_VAR_SETMAX, &val, NULL); var_Change (obj, c->name, VLC_VAR_SETMAX, &val, NULL);
val.i_int = query->default_value;
var_Change (obj, c->name, VLC_VAR_SETDEFAULT, &val, NULL);
/* Import menu choices */ /* Import menu choices */
for (uint_fast32_t idx = query->minimum; for (uint_fast32_t idx = query->minimum;
......
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