mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
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:
parent
de9278fda9
commit
42f571ed49
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue