From c811d514717557d03a7fa811232c133a79463550 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 3 Jun 2009 10:39:53 +0200 Subject: [PATCH] basesink: forget previous times when stepping When we start a flushing step operation, forget about the previous stream time so that the position reporting works correctly. --- libs/gst/base/gstbasesink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 431797ef4b..cb90d22fac 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -3480,6 +3480,9 @@ gst_base_sink_perform_step (GstBaseSink * sink, GstPad * pad, GstEvent * event) sink->priv->have_latency = TRUE; sink->need_preroll = FALSE; } + priv->current_sstart = -1; + priv->current_sstop = -1; + priv->eos_rtime = -1; priv->call_preroll = TRUE; gst_base_sink_set_last_buffer (sink, NULL); gst_base_sink_reset_qos (sink);