mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
playbin: Only put parsers and sinks first, not all non-decoders
https://bugzilla.gnome.org/show_bug.cgi?id=722316
This commit is contained in:
parent
1d75bdca92
commit
6b46019abf
1 changed files with 4 additions and 2 deletions
|
@ -3833,8 +3833,10 @@ create_decoders_list (GList * factory_list, GSequence * avelements)
|
|||
GstElementFactory *factory = (GstElementFactory *) tmp->data;
|
||||
|
||||
/* if there are parsers or sink elements, add them first */
|
||||
if (!gst_element_factory_list_is_type (factory,
|
||||
GST_ELEMENT_FACTORY_TYPE_DECODER)) {
|
||||
if (gst_element_factory_list_is_type (factory,
|
||||
GST_ELEMENT_FACTORY_TYPE_PARSER) ||
|
||||
gst_element_factory_list_is_type (factory,
|
||||
GST_ELEMENT_FACTORY_TYPE_SINK)) {
|
||||
dec_list = g_list_prepend (dec_list, factory);
|
||||
} else {
|
||||
GSequenceIter *seq_iter;
|
||||
|
|
Loading…
Reference in a new issue