mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
assrender: Do not try to add a feature to a caps features ANY
It does not makes sense and asserts
Based on 7f9aac386f
from gst-plugins-base.
This commit is contained in:
parent
066cf18336
commit
d578cbf7d7
1 changed files with 3 additions and 1 deletions
|
@ -521,7 +521,9 @@ gst_ass_render_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,
|
||||
|
|
Loading…
Reference in a new issue