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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8385>
This commit is contained in:
Jan Schmidt 2025-01-30 15:48:03 +11:00 committed by GStreamer Marge Bot
parent a88eda66d2
commit 31a3172bfe

View file

@ -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++) {