From a15baf797603c6c65e442f488f20993d800bbbc1 Mon Sep 17 00:00:00 2001 From: Roland Jon Date: Tue, 24 Jul 2018 18:40:36 +0800 Subject: [PATCH] decodebin3: fix eos event leak https://bugzilla.gnome.org/show_bug.cgi?id=796860 --- gst/playback/gstdecodebin3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/playback/gstdecodebin3.c b/gst/playback/gstdecodebin3.c index 1a85026bd7..cfe061ac31 100644 --- a/gst/playback/gstdecodebin3.c +++ b/gst/playback/gstdecodebin3.c @@ -1825,6 +1825,8 @@ multiqueue_src_probe (GstPad * pad, GstPadProbeInfo * info, } else if (!was_drained) { check_all_slot_for_eos (dbin); } + if (ret == GST_PAD_PROBE_HANDLED) + gst_event_unref (ev); SELECTION_UNLOCK (dbin); break; }