Set the element to eos after all EOS events are pushed

Original commit message from CVS:
Set the element to eos after all EOS events are pushed
This commit is contained in:
Wim Taymans 2002-05-31 21:34:45 +00:00
parent ea74061a18
commit 6f8ddd3043

View file

@ -2355,8 +2355,8 @@ gst_pad_event_default (GstPad *pad, GstEvent *event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
gst_element_set_eos (element);
gst_pad_event_default_dispatch (pad, element, event);
gst_element_set_eos (element);
/* we have to try to schedule another element because this one is disabled */
gst_element_yield (element);
break;