Commit 06885211 authored by Sebastian Dröge's avatar Sebastian Dröge

vorbisdec: Unref events if the parent element disappeared

parent 5e9cfc63
......@@ -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)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment