mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 13:53:19 +00:00
typefindelement: do not leak sticky events in flush_stop
https://bugzilla.gnome.org/show_bug.cgi?id=736813
This commit is contained in:
parent
67c1a6ff30
commit
178acf7424
1 changed files with 4 additions and 5 deletions
|
@ -653,13 +653,12 @@ gst_type_find_element_sink_event (GstPad * pad, GstObject * parent,
|
|||
GST_OBJECT_LOCK (typefind);
|
||||
|
||||
for (l = typefind->cached_events; l; l = l->next) {
|
||||
if (!GST_EVENT_IS_STICKY (l->data) ||
|
||||
GST_EVENT_TYPE (l->data) == GST_EVENT_SEGMENT ||
|
||||
GST_EVENT_TYPE (l->data) == GST_EVENT_EOS) {
|
||||
gst_event_unref (l->data);
|
||||
} else {
|
||||
if (GST_EVENT_IS_STICKY (l->data) &&
|
||||
GST_EVENT_TYPE (l->data) != GST_EVENT_SEGMENT &&
|
||||
GST_EVENT_TYPE (l->data) != GST_EVENT_EOS) {
|
||||
gst_pad_store_sticky_event (typefind->src, l->data);
|
||||
}
|
||||
gst_event_unref (l->data);
|
||||
}
|
||||
|
||||
g_list_free (typefind->cached_events);
|
||||
|
|
Loading…
Reference in a new issue