mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue