summaryrefslogtreecommitdiff
path: root/ext/assrender
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-11 07:56:17 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-11 07:56:50 +0200
commitd578cbf7d720bfee4e2964ed1b2fc51b199a887d (patch)
tree6d14acc9ed1eb19157e50558e80b29578cf19438 /ext/assrender
parent066cf183369593824a59bb3bd43f78b74e6ecca7 (diff)
downloadgstreamer-plugins-bad-d578cbf7d720bfee4e2964ed1b2fc51b199a887d.tar.gz
assrender: Do not try to add a feature to a caps features ANY
It does not makes sense and asserts Based on 7f9aac386fd5d5921c80100889a5f212c0148a88 from gst-plugins-base.
Diffstat (limited to 'ext/assrender')
-rw-r--r--ext/assrender/gstassrender.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c
index a04d94e59..68462ca1f 100644
--- a/ext/assrender/gstassrender.c
+++ b/ext/assrender/gstassrender.c
@@ -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,