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:
parent
baac8ad663
commit
ad2f74afbc
@ -250,7 +250,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
|
|||||||
|
|
||||||
control.id = n;
|
control.id = n;
|
||||||
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_QUERYCTRL, &control) < 0) {
|
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) {
|
if (n < V4L2_CID_PRIVATE_BASE) {
|
||||||
GST_DEBUG_OBJECT (e, "skipping control %08x", n);
|
GST_DEBUG_OBJECT (e, "skipping control %08x", n);
|
||||||
/* continue so that we also check private controls */
|
/* continue so that we also check private controls */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user