summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Fruchet <hugues.fruchet@foss.st.com>2024-09-24 17:01:10 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2024-09-24 12:57:16 -0400
commit5801e171601b9a5c2697d9f5e5140426971182ed (patch)
tree84fa3dd1d31fc4c4440b79970e7a38eb88069988
parent86af5a5f20e65696397e224acd2a641df6891029 (diff)
kmsallocator: fix stride with planar formats
This fixes a regression introduced by the merge request https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3801 The extrapolated stride was computed but not used, resulting in the same stride being applied to all planes. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7566>
-rw-r--r--subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c b/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c
index 3ec2fdb32d..84359b0782 100644
--- a/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c
+++ b/subprojects/gst-plugins-bad/sys/kms/gstkmsallocator.c
@@ -122,7 +122,7 @@ gst_kms_allocator_memory_create (GstKMSAllocator * allocator,
/* Overwrite the video info's stride and offset using the pitch calculcated
* by the kms driver. */
stride = gst_video_format_info_extrapolate_stride (vinfo->finfo, i, pitch);
- GST_VIDEO_INFO_PLANE_STRIDE (vinfo, i) = pitch;
+ GST_VIDEO_INFO_PLANE_STRIDE (vinfo, i) = stride;
GST_VIDEO_INFO_PLANE_OFFSET (vinfo, i) = offs;
/* Note that we cannot negotiate special padding betweem each planes,