summaryrefslogtreecommitdiff
path: root/yavta.c
diff options
context:
space:
mode:
Diffstat (limited to 'yavta.c')
-rw-r--r--yavta.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/yavta.c b/yavta.c
index 480ce74..cbcf310 100644
--- a/yavta.c
+++ b/yavta.c
@@ -326,6 +326,7 @@ static void set_control(struct device *dev, unsigned int id, int type,
struct v4l2_control old;
old.id = id;
+ old.value = val;
ret = ioctl(dev->fd, VIDIOC_S_CTRL, &old);
if (ret != -1)
val = old.value;