mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +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/3443>
This commit is contained in:
parent
f3c2f612ce
commit
948bc4291c
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_ogg_demux_clear_chains (ogg);
|
||||||
GST_OBJECT_LOCK (ogg);
|
GST_OBJECT_LOCK (ogg);
|
||||||
ogg->running = FALSE;
|
ogg->running = FALSE;
|
||||||
|
gst_event_replace (&ogg->seek_event, NULL);
|
||||||
GST_OBJECT_UNLOCK (ogg);
|
GST_OBJECT_UNLOCK (ogg);
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_READY_TO_NULL:
|
case GST_STATE_CHANGE_READY_TO_NULL:
|
||||||
|
|
Loading…
Reference in a new issue