diff options
author | Robert Krakora <rob.krakora@messagenetsystems.com> | 2013-01-04 10:03:32 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-01-04 10:04:53 +0100 |
commit | 81588e44a9a964b9bc36f38e329f6fcaf20c2a19 (patch) | |
tree | 4fefb36363c5cf3bdd31cb38cbc2e9f57a0652b1 | |
parent | b525644e5bb36d095dc187a3471a3a782d0e49ea (diff) |
v4l2: Also handle the new ENOENT return value of VIDIOC_QUERYCTRL
https://bugzilla.gnome.org/show_bug.cgi?id=691098
-rw-r--r-- | sys/v4l2/v4l2_calls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c index 2f796273a..4e3eb21f5 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 */ |