mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:16:13 +00:00
icydemux: Unref dropped events
This commit is contained in:
parent
457712b933
commit
bd65c36cbb
1 changed files with 4 additions and 1 deletions
|
@ -409,9 +409,12 @@ gst_icydemux_handle_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
|
|
||||||
return gst_pad_event_default (pad, parent, event);
|
return gst_pad_event_default (pad, parent, event);
|
||||||
default:
|
default:
|
||||||
if (!GST_EVENT_IS_STICKY (event))
|
if (!GST_EVENT_IS_STICKY (event)) {
|
||||||
icydemux->cached_events =
|
icydemux->cached_events =
|
||||||
g_list_append (icydemux->cached_events, event);
|
g_list_append (icydemux->cached_events, event);
|
||||||
|
} else {
|
||||||
|
gst_event_unref (event);
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue