v4l2: handle ENODATA return value for VIDIOC_ENUMSTD
In kernel v3.7-rc1, VIDIOC_ENUMSTD returns ENODATA if the current input does not support the STD API. https://bugzilla.gnome.org/show_bug.cgi?id=698827
This commit is contained in:
parent
1df2e623b5
commit
305023fe9d
@ -204,7 +204,7 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
|
||||
standard.index = n;
|
||||
|
||||
if (v4l2_ioctl (v4l2object->video_fd, VIDIOC_ENUMSTD, &standard) < 0) {
|
||||
if (errno == EINVAL || errno == ENOTTY)
|
||||
if (errno == EINVAL || errno == ENOTTY || errno == ENODATA)
|
||||
break; /* end of enumeration */
|
||||
else {
|
||||
GST_ELEMENT_ERROR (e, RESOURCE, SETTINGS,
|
||||
|
Loading…
x
Reference in New Issue
Block a user