From 31a3172bfe8068ef7d4441f97a7d8705e0b130c7 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 30 Jan 2025 15:48:03 +1100 Subject: [PATCH] v4l2vidoedec: Fix caps negotiation in non-DRM case Append acquired_caps to the filter_caps being built, instead of a 2nd copy of acquired_drm_caps. Fix a regression introduced in https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7633 when downstream doesn't support DRM output. Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c index 32e188478f..1b2cdff185 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videodec.c @@ -447,7 +447,7 @@ gst_v4l2_video_dec_negotiate (GstVideoDecoder * decoder) acquired_caps = gst_video_info_to_caps (&info.vinfo); if (acquired_caps) { GST_DEBUG_OBJECT (self, "Acquired caps: %" GST_PTR_FORMAT, acquired_caps); - gst_caps_append (fixation_caps, gst_caps_copy (acquired_drm_caps)); + gst_caps_append (fixation_caps, gst_caps_copy (acquired_caps)); } for (i = 0; i < gst_caps_get_size (fixation_caps); i++) {