summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent ThiƩry <florent.thiery@ubicast.eu>2017-11-29 11:29:31 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-11-29 10:13:44 -0500
commita31581064013e729ae03f33c086cadb8919e17ab (patch)
tree0f88f82611b39f74c9a16d127157ad259fd365c8
parent0be4e801455a4537787e3cc9e59c4c9215b92d80 (diff)
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
-rw-r--r--sys/v4l2/gstv4l2object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index a2848cae3..e13284c60 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;