From 6e549b2fe5c1322ddf26a4a6b6fdbbac371b8a6c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sat, 1 Oct 2022 04:38:53 +1000 Subject: [PATCH] uridecodebin3: Don't leak EOS event Make sure to unref the EOS event in all code paths when returning GST_PAD_PROBE_HANDLED Part-of: --- subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c index 390b51b..3750a01 100644 --- a/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c +++ b/subprojects/gst-plugins-base/gst/playback/gsturidecodebin3.c @@ -1152,6 +1152,9 @@ uri_src_probe (GstPad * pad, GstPadProbeInfo * info, GstSourcePad * srcpad) if (peer) { gst_pad_send_event (peer, event); gst_object_unref (peer); + } else { + /* No peer, just drop it (since we're returning HANDLED below) */ + gst_event_unref (event); } PLAY_ITEMS_LOCK (handler->uridecodebin); -- 2.7.4