capsfilter: Remove EOS event from pending_event list on FLUSH_STOP

https://bugzilla.gnome.org/show_bug.cgi?id=709868
This commit is contained in:
Thibault Saunier 2014-06-03 14:23:30 +02:00 committed by Sebastian Dröge
parent de9278fda9
commit 42f571ed49

View file

@ -382,7 +382,8 @@ gst_capsfilter_sink_event (GstBaseTransform * trans, GstEvent * event)
GList *l;
for (l = filter->pending_events; l; l = l->next) {
if (GST_EVENT_TYPE (l->data) == GST_EVENT_SEGMENT) {
if (GST_EVENT_TYPE (l->data) == GST_EVENT_SEGMENT ||
GST_EVENT_TYPE (l->data) == GST_EVENT_EOS) {
gst_event_unref (l->data);
filter->pending_events = g_list_delete_link (filter->pending_events, l);
break;