Original commit message from CVS:
Make sure the loopfunction ends when an element goes to EOS.
Fixed the fakesrc bug found by taaz.
if (src->num_buffers == 0) {
gst_pad_set_eos (pad);
- return NULL;
+ return;
}
else {
if (src->num_buffers > 0)
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);
}
if (src->num_buffers == 0) {
gst_pad_set_eos (pad);
- return NULL;
+ return;
}
else {
if (src->num_buffers > 0)