diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2014-06-03 14:23:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-24 10:57:32 +0300 |
commit | 42f571ed499069a8884838d1d0d11b48afb64ec9 (patch) | |
tree | b33714b5ad5b57eafc6f1d40c9b32ee5dd55a41a | |
parent | de9278fda91114731d16614cdfdd00058c67b648 (diff) | |
download | gstreamer-42f571ed499069a8884838d1d0d11b48afb64ec9.tar.gz |
capsfilter: Remove EOS event from pending_event list on FLUSH_STOP
https://bugzilla.gnome.org/show_bug.cgi?id=709868
-rw-r--r-- | plugins/elements/gstcapsfilter.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |