From 948bc4291cc0afd5ce85ddbf4107466142dc7a8f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2022 15:12:26 +0100 Subject: [PATCH] oggdemux: Don't leak pending seek event Make sure any pending seek event is released when going back down to READY. Part-of: --- subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c b/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c index d088d64..e72fda8 100644 --- a/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c +++ b/subprojects/gst-plugins-base/ext/ogg/gstoggdemux.c @@ -5265,6 +5265,7 @@ gst_ogg_demux_change_state (GstElement * element, GstStateChange transition) gst_ogg_demux_clear_chains (ogg); GST_OBJECT_LOCK (ogg); ogg->running = FALSE; + gst_event_replace (&ogg->seek_event, NULL); GST_OBJECT_UNLOCK (ogg); break; case GST_STATE_CHANGE_READY_TO_NULL: -- 2.7.4