gst/parse/grammar.y: don't try to link elements before they have been added to bins
authorBenjamin Otte <otte@gnome.org>
Thu, 24 Jun 2004 03:51:02 +0000 (03:51 +0000)
committerBenjamin Otte <otte@gnome.org>
Thu, 24 Jun 2004 03:51:02 +0000 (03:51 +0000)
Original commit message from CVS:
* gst/parse/grammar.y:
don't try to link elements before they have been added to bins

ChangeLog
gst/parse/grammar.y

index f4106f2..8b99e73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-24  Benjamin Otte  <otte@gnome.org>
+
+       * gst/parse/grammar.y:
+         don't try to link elements before they have been added to bins
+
 2004-06-24  Benjamin Otte  <in7y118@public.uni-hamburg.de>
 
        * libs/gst/bytestream/filepad.c: (gst_file_pad_available),
index 1033842..ec85730 100644 (file)
@@ -599,12 +599,7 @@ chain:     element                       { $$ = gst_parse_chain_new ();
                                                }
                                                
                                                if ($1->back) {
-                                                 if (!$1->back->sink || !$1->back->src) {
-                                                   ((graph_t *) graph)->links = g_slist_prepend (((graph_t *) graph)->links, $1->back);
-                                                   $1->back = NULL;
-                                                 } else {
-                                                   gst_parse_perform_link ($1->back, (graph_t *) graph);
-                                                 }
+                                                 ((graph_t *) graph)->links = g_slist_prepend (((graph_t *) graph)->links, $1->back);
                                                }
                                                $1->last = $2->last;
                                                $1->back = $2->back;