[Bug 790940] v4l2src not falling back to another io-mode if driver does not support dmabuf
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Nov 29 10:05:01 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=790940
--- Comment #4 from Florent ThiƩry <florent.thiery at ubicast.eu> ---
I checked, and even though the ENOTTY is properly returned, the return value is
still TRUE.
static gboolean
gst_v4l2_object_is_dmabuf_supported (GstV4l2Object * v4l2object)
{
gboolean ret = TRUE;
struct v4l2_exportbuffer expbuf = {
.type = v4l2object->type,
.index = -1,
.plane = -1,
.flags = O_CLOEXEC | O_RDWR,
};
/* Expected to fail, but ENOTTY tells us that it is not implemented. */
v4l2object->ioctl (v4l2object->video_fd, VIDIOC_EXPBUF, &expbuf);
if (errno == -ENOTTY)
ret = FALSE;
GST_DEBUG_OBJECT (v4l2object->element, "dmabuf not supported");
GST_DEBUG ("ret: %d", ret);
return ret;
}
0:00:00.063954056 16815 0x5583aafec770 DEBUG v4l2
gstv4l2object.c:2870:gst_v4l2_object_is_dmabuf_supported:<v4l2src0> dmabuf not
supported
0:00:00.063956958 16815 0x5583aafec770 DEBUG v4l2
gstv4l2object.c:2872:gst_v4l2_object_is_dmabuf_supported: ret: 1
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list