oggdemux: Don't leak pending seek event

Make sure any pending seek event is released when going back down to READY.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3578>
This commit is contained in:
Edward Hervey 2022-11-21 15:12:26 +01:00 committed by GStreamer Marge Bot
parent 0000476b5a
commit 595d2d283d

View file

@ -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: