basesink: forget previous times when stepping
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Jun 2009 08:39:53 +0000 (10:39 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Jun 2009 08:39:53 +0000 (10:39 +0200)
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

index 431797e..cb90d22 100644 (file)
@@ -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);