From 1dcd1a74792f0597580e8a3e0551674324719ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 Feb 2015 12:34:11 +0200 Subject: [PATCH] decodebin: Only consider non-parser factories for generating the post-parser capsfilter caps Otherwise if there are multiple parsers we would most likely break negotiation of the stream-format/alignment wanted by the decoders as parsers generally support all possible stream-formats and alignments. --- gst/playback/gstdecodebin2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/playback/gstdecodebin2.c b/gst/playback/gstdecodebin2.c index cf52cd6eea..5544ee0032 100644 --- a/gst/playback/gstdecodebin2.c +++ b/gst/playback/gstdecodebin2.c @@ -1715,7 +1715,9 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad, GST_DEBUG ("Trying factory %s", gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (factory))); - if (gst_element_get_factory (src) == factory) { + if (gst_element_get_factory (src) == factory || + gst_element_factory_list_is_type (factory, + GST_ELEMENT_FACTORY_TYPE_PARSER)) { GST_DEBUG ("Skipping factory"); continue; }