v4l2object: Fix dmabuf support detection
This resulted in improper selection of dmabuf on unsupported drivers. The checked ioctl errno was not correct. https://bugzilla.gnome.org/show_bug.cgi?id=790940
This commit is contained in:
parent
0be4e80145
commit
a315810640
@ -2865,7 +2865,7 @@ gst_v4l2_object_is_dmabuf_supported (GstV4l2Object * v4l2object)
|
||||
|
||||
/* Expected to fail, but ENOTTY tells us that it is not implemented. */
|
||||
v4l2object->ioctl (v4l2object->video_fd, VIDIOC_EXPBUF, &expbuf);
|
||||
if (errno == -ENOTTY)
|
||||
if (errno == ENOTTY)
|
||||
ret = FALSE;
|
||||
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user