mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
baseparse: Clear some more state when receiving FLUSH_STOP
Like pending serialized events and the currently cached buffer.
This commit is contained in:
parent
cd195f2143
commit
13930dad53
1 changed files with 8 additions and 0 deletions
|
@ -460,6 +460,14 @@ gst_base_parse_clear_queues (GstBaseParse * parse)
|
|||
g_queue_foreach (&parse->priv->queued_frames,
|
||||
(GFunc) gst_base_parse_frame_free, NULL);
|
||||
g_queue_clear (&parse->priv->queued_frames);
|
||||
|
||||
gst_buffer_replace (&parse->priv->cache, NULL);
|
||||
|
||||
g_list_foreach (parse->priv->pending_events, (GFunc) gst_event_unref, NULL);
|
||||
g_list_free (parse->priv->pending_events);
|
||||
parse->priv->pending_seeks = NULL;
|
||||
|
||||
gst_event_replace (&parse->priv->pending_segment, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue