From: Sebastian Dröge Date: Sun, 11 May 2014 05:56:17 +0000 (+0200) Subject: assrender: Do not try to add a feature to a caps features ANY X-Git-Tag: 1.19.3~507^2~11141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d578cbf7d720bfee4e2964ed1b2fc51b199a887d;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c index a04d94e..68462ca 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,