gst/playback/gstplaybasebin.c: Only signal the no_more_pads signal when we have added the stream to our list.

Original commit message from CVS:
* gst/playback/gstplaybasebin.c: (new_decoded_pad):
Only signal the no_more_pads signal when we have
added the stream to our list.
This commit is contained in:
Wim Taymans 2004-09-24 17:33:00 +00:00
parent 26f9ce012c
commit 99b89da705
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2004-09-24 Wim Taymans <wim@fluendo.com>
* gst/playback/gstplaybasebin.c: (new_decoded_pad):
Only signal the no_more_pads signal when we have
added the stream to our list.
2004-09-24 Wim Taymans <wim@fluendo.com>
* gst/playback/gstplaybasebin.c: (remove_prerolls),

View file

@ -327,8 +327,6 @@ new_decoded_pad (GstElement * element, GstPad * pad, gboolean last,
if (last || !need_preroll) {
srcpad = pad;
if (last)
no_more_pads (NULL, play_base_bin);
} else {
new_element = gen_preroll_element (play_base_bin, pad);
srcpad = gst_element_get_pad (new_element, "src");
@ -342,9 +340,13 @@ new_decoded_pad (GstElement * element, GstPad * pad, gboolean last,
gst_element_set_state (new_element, GST_STATE_PAUSED);
}
/* add the stream to the list */
info = gst_stream_info_new (srcpad, type, NULL);
play_base_bin->streaminfo = g_list_append (play_base_bin->streaminfo, info);
/* signal the no more pads after adding the stream */
if (last)
no_more_pads (NULL, play_base_bin);
}
static void