summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-03-05 14:25:57 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-03-05 14:37:57 +0100
commit563ba031a2a2fb9d856e3f2b8c2be1eceac7ec86 (patch)
treed74304864788c72fa5240895ea3cb115cfe14fbd /libs
parent747dfc09b26739805f0e6d09e9f1883193317571 (diff)
baseparse: Also flush the close_segment
Pushing this after flushing will confuse downstream.
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/base/gstbaseparse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index 959864980..bcb2a9a05 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -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;