From 42f571ed499069a8884838d1d0d11b48afb64ec9 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 3 Jun 2014 14:23:30 +0200 Subject: [PATCH] capsfilter: Remove EOS event from pending_event list on FLUSH_STOP https://bugzilla.gnome.org/show_bug.cgi?id=709868 --- plugins/elements/gstcapsfilter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c index 1c29a257eb..86c0df0e1f 100644 --- a/plugins/elements/gstcapsfilter.c +++ b/plugins/elements/gstcapsfilter.c @@ -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;