gst/parse/grammar.y: don't try to link elements before they have been added to bins

Original commit message from CVS:
* gst/parse/grammar.y:
don't try to link elements before they have been added to bins
This commit is contained in:
Benjamin Otte 2004-06-24 03:51:02 +00:00
parent 5e2e65c734
commit 2c2a7a3847
2 changed files with 6 additions and 6 deletions

View file

@ -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),

View 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;