From f15f4ec8aa4e1b98652e582ea34c4a4834faf947 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 14 Jan 2014 15:52:26 +0100 Subject: [PATCH] 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. --- gst/parse/grammar.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y index e2fb915..5279dd7 100644 --- a/gst/parse/grammar.y +++ b/gst/parse/grammar.y @@ -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 -- 2.7.4