v4l2: Also handle the new ENOENT return value of VIDIOC_QUERYCTRL
authorRobert Krakora <rob.krakora@messagenetsystems.com>
Fri, 4 Jan 2013 09:03:32 +0000 (10:03 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 4 Jan 2013 09:04:26 +0000 (10:04 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=691098

sys/v4l2/v4l2_calls.c

index 464b806..07d390a 100644 (file)
@@ -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 */