From fe18201094a43113782aba447b11b37ce49087c5 Mon Sep 17 00:00:00 2001 From: Benjamin Schaaf Date: Sat, 28 Nov 2020 00:51:19 +1100 Subject: [PATCH] Don't log an error when camera query control fails --- camera.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/camera.c b/camera.c index 3ff5356..42d5fad 100644 --- a/camera.c +++ b/camera.c @@ -1053,7 +1053,9 @@ bool mp_camera_query_control(MPCamera *camera, uint32_t id, MPControl *control) struct v4l2_query_ext_ctrl ctrl = {}; ctrl.id = id; if (xioctl(control_fd(camera), VIDIOC_QUERY_EXT_CTRL, &ctrl) == -1) { - errno_printerr("VIDIOC_QUERY_EXT_CTRL"); + if (errno != EINVAL) { + errno_printerr("VIDIOC_QUERY_EXT_CTRL"); + } return false; }