[gst-cvs] gstreamer: basesink: forget previous times when stepping
Wim Taymans
wtay at kemper.freedesktop.org
Wed Jun 3 01:40:52 PDT 2009
Module: gstreamer
Branch: master
Commit: c811d514717557d03a7fa811232c133a79463550
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=c811d514717557d03a7fa811232c133a79463550
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Wed Jun 3 10:39:53 2009 +0200
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 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c
index 431797e..cb90d22 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);
More information about the Gstreamer-commits
mailing list