From a31581064013e729ae03f33c086cadb8919e17ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= Date: Wed, 29 Nov 2017 11:29:31 +0100 Subject: [PATCH] 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 --- sys/v4l2/gstv4l2object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index a2848cae3e..e13284c60e 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -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;