mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
capsfilter: Delete link directly in pending_events.
When removing a segment event. https://bugzilla.gnome.org/show_bug.cgi?id=707088
This commit is contained in:
parent
3057001622
commit
76b5278f7c
1 changed files with 5 additions and 5 deletions
|
@ -366,17 +366,17 @@ gst_capsfilter_sink_event (GstBaseTransform * trans, GstEvent * event)
|
||||||
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
|
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
for (l = filter->pending_events; 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_unref (l->data);
|
gst_event_unref (l->data);
|
||||||
l = g_list_delete_link (l, l);
|
filter->pending_events = g_list_delete_link (filter->pending_events, l);
|
||||||
} else {
|
break;
|
||||||
l = l->next;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!GST_EVENT_IS_STICKY (event) || GST_EVENT_TYPE (event) <= GST_EVENT_CAPS)
|
if (!GST_EVENT_IS_STICKY (event)
|
||||||
|
|| GST_EVENT_TYPE (event) <= GST_EVENT_CAPS)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
/* If we get EOS before any buffers, just push all pending events */
|
/* If we get EOS before any buffers, just push all pending events */
|
||||||
|
|
Loading…
Reference in a new issue