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.
This commit is contained in:
Wim Taymans 2009-06-03 10:39:53 +02:00
parent 31c09d738c
commit c811d51471

View 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);