diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c index 28709f89b6..60c5eb266d 100644 --- a/ext/pango/gstbasetextoverlay.c +++ b/ext/pango/gstbasetextoverlay.c @@ -1095,7 +1095,10 @@ gst_base_text_overlay_add_feature_and_intersect (GstCaps * caps, caps_size = gst_caps_get_size (new_caps); for (i = 0; i < caps_size; 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,