mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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.
This commit is contained in:
parent
7e39a51a50
commit
1dcd1a7479
1 changed files with 3 additions and 1 deletions
|
@ -1715,7 +1715,9 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
|
||||||
GST_DEBUG ("Trying factory %s",
|
GST_DEBUG ("Trying factory %s",
|
||||||
gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (factory)));
|
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");
|
GST_DEBUG ("Skipping factory");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue