From d56f601b48450bebe0fe2d1f4760e3fc25a26065 Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Tue, 28 May 2024 18:26:56 +0200 Subject: [PATCH] gstvideoaggregator: preserve features in non-alpha caps Fixes caps negotiation when sink template caps of an element inheriting GstVideoAggregator have features different from the implicit "memory:SystemMemory". Part-of: --- .../gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c index c1f3446278..3bc376eb74 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoaggregator.c @@ -1563,7 +1563,8 @@ _get_non_alpha_caps (GstCaps * caps) if (has_format) { s = gst_structure_copy (s); gst_structure_take_value (s, "format", &new_formats); - gst_caps_append_structure (result, s); + gst_caps_append_structure_full (result, s, + gst_caps_features_copy (gst_caps_get_features (caps, i))); } }