From ad2f74afbc145e293b99bcffe5f32050b3b795b3 Mon Sep 17 00:00:00 2001 From: Robert Krakora Date: Fri, 4 Jan 2013 10:03:32 +0100 Subject: [PATCH] v4l2: Also handle the new ENOENT return value of VIDIOC_QUERYCTRL https://bugzilla.gnome.org/show_bug.cgi?id=691098 --- sys/v4l2/v4l2_calls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index 464b8067ac..07d390a4a0 100644 --- a/sys/v4l2/v4l2_calls.c +++ b/sys/v4l2/v4l2_calls.c @@ -250,7 +250,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object) control.id = n; if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, &control) < 0) { - if (errno == EINVAL || errno == ENOTTY || errno == EIO) { + if (errno == EINVAL || errno == ENOTTY || errno == EIO || errno == ENOENT) { if (n < V4L2_CID_PRIVATE_BASE) { GST_DEBUG_OBJECT (e, "skipping control %08x", n); /* continue so that we also check private controls */