From 625e74100d41aaa7262c83284dd647b278b8eec9 Mon Sep 17 00:00:00 2001 From: Jianhui Dai Date: Wed, 24 Aug 2022 17:30:34 +0800 Subject: [PATCH] v4l2allocator: Fix invalid imported dmabuf fd Fix a typo that set userptr to dmabuf fd. It leads to failure of dmabuf-import io-mode. Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c index e82a8532d6..48d1bb86e8 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2allocator.c @@ -1134,7 +1134,7 @@ gst_v4l2_allocator_import_dmabuf (GstV4l2Allocator * allocator, if (!V4L2_TYPE_IS_MULTIPLANAR (obj->type)) { group->buffer.bytesused = group->planes[0].bytesused; group->buffer.length = group->planes[0].length; - group->buffer.m.fd = group->planes[0].m.userptr; + group->buffer.m.fd = group->planes[0].m.fd; /* FIXME Check if data_offset > 0 and fail for non-multi-planar */ g_assert (group->planes[0].data_offset == 0);