mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-07 16:49:52 +00:00
baseparse: Also flush the close_segment
Pushing this after flushing will confuse downstream.
This commit is contained in:
parent
747dfc09b2
commit
563ba031a2
1 changed files with 4 additions and 1 deletions
|
@ -465,9 +465,10 @@ gst_base_parse_clear_queues (GstBaseParse * parse)
|
|||
|
||||
g_list_foreach (parse->priv->pending_events, (GFunc) gst_event_unref, NULL);
|
||||
g_list_free (parse->priv->pending_events);
|
||||
parse->priv->pending_seeks = NULL;
|
||||
parse->priv->pending_events = NULL;
|
||||
|
||||
gst_event_replace (&parse->priv->pending_segment, NULL);
|
||||
gst_event_replace (&parse->priv->close_segment, NULL);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -775,6 +776,8 @@ gst_base_parse_reset (GstBaseParse * parse)
|
|||
g_list_free (parse->priv->pending_events);
|
||||
parse->priv->pending_events = NULL;
|
||||
|
||||
gst_event_replace (&parse->priv->close_segment, NULL);
|
||||
|
||||
if (parse->priv->cache) {
|
||||
gst_buffer_unref (parse->priv->cache);
|
||||
parse->priv->cache = NULL;
|
||||
|
|
Loading…
Reference in a new issue