mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Make sure the loopfunction ends when an element goes to EOS.
Original commit message from CVS: Make sure the loopfunction ends when an element goes to EOS. Fixed the fakesrc bug found by taaz.
This commit is contained in:
parent
fdaa2307da
commit
0a9cc5f2fe
3 changed files with 3 additions and 2 deletions
|
@ -318,7 +318,7 @@ gst_fakesrc_loop(GstElement *element)
|
|||
|
||||
if (src->num_buffers == 0) {
|
||||
gst_pad_set_eos (pad);
|
||||
return NULL;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
if (src->num_buffers > 0)
|
||||
|
|
|
@ -1018,5 +1018,6 @@ gst_element_signal_eos (GstElement *element)
|
|||
g_return_if_fail (GST_IS_ELEMENT (element));
|
||||
|
||||
gtk_signal_emit (GTK_OBJECT (element), gst_element_signals[EOS]);
|
||||
GST_FLAG_SET(element,GST_ELEMENT_COTHREAD_STOPPING);
|
||||
}
|
||||
|
||||
|
|
|
@ -318,7 +318,7 @@ gst_fakesrc_loop(GstElement *element)
|
|||
|
||||
if (src->num_buffers == 0) {
|
||||
gst_pad_set_eos (pad);
|
||||
return NULL;
|
||||
return;
|
||||
}
|
||||
else {
|
||||
if (src->num_buffers > 0)
|
||||
|
|
Loading…
Reference in a new issue