mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
pango: Do not try to add a feature to a caps features ANY
It does not makes sense and asserts
This commit is contained in:
parent
3f68f522ee
commit
7f9aac386f
1 changed files with 4 additions and 1 deletions
|
@ -1095,7 +1095,10 @@ gst_base_text_overlay_add_feature_and_intersect (GstCaps * caps,
|
||||||
caps_size = gst_caps_get_size (new_caps);
|
caps_size = gst_caps_get_size (new_caps);
|
||||||
for (i = 0; i < caps_size; i++) {
|
for (i = 0; i < caps_size; i++) {
|
||||||
GstCapsFeatures *features = gst_caps_get_features (new_caps, i);
|
GstCapsFeatures *features = gst_caps_get_features (new_caps, i);
|
||||||
gst_caps_features_add (features, feature);
|
|
||||||
|
if (!gst_caps_features_is_any (features)) {
|
||||||
|
gst_caps_features_add (features, feature);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_caps_append (new_caps, gst_caps_intersect_full (caps,
|
gst_caps_append (new_caps, gst_caps_intersect_full (caps,
|
||||||
|
|
Loading…
Reference in a new issue