Pushing this after flushing will confuse downstream.
g_list_foreach (parse->priv->pending_events, (GFunc) gst_event_unref, NULL);
g_list_free (parse->priv->pending_events);
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->pending_segment, NULL);
+ gst_event_replace (&parse->priv->close_segment, NULL);
g_list_free (parse->priv->pending_events);
parse->priv->pending_events = NULL;
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;
if (parse->priv->cache) {
gst_buffer_unref (parse->priv->cache);
parse->priv->cache = NULL;