parse: Make sure to create and link chains in the order as written

Make this work again:
audiotestsrc ! tee name=t  t.src_0 ! queue ! fakesink  t.src_1 ! queue ! fakesink
and this fail again:
audiotestsrc ! tee name=t  t.src_1 ! queue ! fakesink  t.src_0 ! queue ! fakesink

as tee just counts itself and does not care about the pad names we request
from it.
This commit is contained in:
Sebastian Dröge 2014-01-14 15:52:26 +01:00
parent 156d925cff
commit f15f4ec8aa

View file

@ -223,7 +223,7 @@ static void add_missing_element(graph_t *graph,gchar *name){
(l)->src.element); \
gst_parse_free_link (l); \
}else{ \
graph->links = g_slist_prepend (graph->links, l ); \
graph->links = g_slist_append (graph->links, l ); \
} \
} G_STMT_END