From 5c1cb960b3477919579b46d69496c5a0eb0e2dee Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 14 Nov 2022 07:26:25 +0100 Subject: [PATCH] oggdemux: Don't leak incoming EOS event If we're going to drop it ... then do drop it :) Part-of: --- subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c b/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c index 649f63d593..d088d645ee 100644 --- a/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c +++ b/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c @@ -2524,6 +2524,7 @@ gst_ogg_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) GST_DEBUG_OBJECT (ogg, "Error seeking back after duration check: %d", res); } + gst_event_unref (event); res = TRUE; break; } else { @@ -2538,6 +2539,8 @@ gst_ogg_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } if (!drop) res = gst_ogg_demux_send_event (ogg, event); + else + gst_event_unref (event); if (ogg->current_chain == NULL) { GST_WARNING_OBJECT (ogg, "EOS while trying to retrieve chain, seeking disabled"); -- 2.34.1