[vlc-commits] v4l2: fix cut and paste error
Rémi Denis-Courmont
git at videolan.org
Mon Jul 30 20:30:58 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 30 21:20:52 2012 +0300| [f8ac92544e8668a436f6c997275b989b0c5d7299] | committer: Rémi Denis-Courmont
v4l2: fix cut and paste error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8ac92544e8668a436f6c997275b989b0c5d7299
---
modules/access/v4l2/controls.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/v4l2/controls.c b/modules/access/v4l2/controls.c
index bfa0e99..66a7555 100644
--- a/modules/access/v4l2/controls.c
+++ b/modules/access/v4l2/controls.c
@@ -464,12 +464,12 @@ static vlc_v4l2_ctrl_t *ControlAddMenu (vlc_object_t *obj, int fd,
val.i_int = ctrl.value;
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;
var_Change (obj, c->name, VLC_VAR_SETMIN, &val, NULL);
val.i_int = query->maximum;
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 */
for (uint_fast32_t idx = query->minimum;
More information about the vlc-commits
mailing list