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:
Wim Taymans 2001-01-20 03:28:37 +00:00
parent fdaa2307da
commit 0a9cc5f2fe
3 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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);
}

View file

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