mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 04:45:36 +00:00
vorbisdec: Unref events if the parent element disappeared
This commit is contained in:
parent
5e9cfc6355
commit
0688521103
1 changed files with 3 additions and 1 deletions
|
@ -410,8 +410,10 @@ vorbis_dec_src_event (GstPad * pad, GstEvent * event)
|
|||
GstVorbisDec *dec;
|
||||
|
||||
dec = GST_VORBIS_DEC (gst_pad_get_parent (pad));
|
||||
if (G_UNLIKELY (dec == NULL))
|
||||
if (G_UNLIKELY (dec == NULL)) {
|
||||
gst_event_unref (event);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_SEEK:
|
||||
|
|
Loading…
Reference in a new issue