v4l2: Also handle the new ENOENT return value of VIDIOC_QUERYCTRL

https://bugzilla.gnome.org/show_bug.cgi?id=691098
This commit is contained in:
Robert Krakora 2013-01-04 10:03:32 +01:00 committed by Sebastian Dröge
parent baac8ad663
commit ad2f74afbc

View 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 */