mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
26f9ce012c
commit
99b89da705
2 changed files with 11 additions and 3 deletions
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue