mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +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;
|
GstElementFactory *factory = (GstElementFactory *) tmp->data;
|
||||||
|
|
||||||
/* if there are parsers or sink elements, add them first */
|
/* if there are parsers or sink elements, add them first */
|
||||||
if (!gst_element_factory_list_is_type (factory,
|
if (gst_element_factory_list_is_type (factory,
|
||||||
GST_ELEMENT_FACTORY_TYPE_DECODER)) {
|
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);
|
dec_list = g_list_prepend (dec_list, factory);
|
||||||
} else {
|
} else {
|
||||||
GSequenceIter *seq_iter;
|
GSequenceIter *seq_iter;
|
||||||
|
|
Loading…
Reference in a new issue