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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7102>
This commit is contained in:
Jakub Adam 2024-05-28 18:26:56 +02:00
parent f392e9b369
commit 9629d78b7c

View file

@ -1563,7 +1563,8 @@ _get_non_alpha_caps (GstCaps * caps)
if (has_format) { if (has_format) {
s = gst_structure_copy (s); s = gst_structure_copy (s);
gst_structure_take_value (s, "format", &new_formats); 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)));
} }
} }