mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
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:
parent
f392e9b369
commit
9629d78b7c
1 changed files with 2 additions and 1 deletions
|
@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue