mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
0000476b5a
commit
595d2d283d
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue