From 5bedd8d8988ef511eb16abae8dd8223a261d4a23 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 19 May 2018 15:57:11 +0200 Subject: [PATCH] v4l2: Update to the latest request API definition Signed-off-by: Paul Kocialkowski --- src/v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v4l2.c b/src/v4l2.c index 91c6ece..dde1509 100644 --- a/src/v4l2.c +++ b/src/v4l2.c @@ -228,7 +228,7 @@ int v4l2_set_control(int video_fd, int request_fd, unsigned int id, void *data, controls.count = 1; if (request_fd >= 0) { - controls.which = V4L2_CTRL_WHICH_REQUEST; + controls.which = V4L2_CTRL_WHICH_REQUEST_VAL; controls.request_fd = request_fd; }