mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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;
|
GstVorbisDec *dec;
|
||||||
|
|
||||||
dec = GST_VORBIS_DEC (gst_pad_get_parent (pad));
|
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;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
case GST_EVENT_SEEK:
|
case GST_EVENT_SEEK:
|
||||||
|
|
Loading…
Reference in a new issue