From cf2124871485227fc352c6419c6072bf6cb9f3e1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 25 Oct 2007 17:20:47 +0000 Subject: [PATCH] libs/gst/base/gstbasesink.c: Reset last seen position after flushing so that we don't report the old position anymore. Original commit message from CVS: * libs/gst/base/gstbasesink.c: (gst_base_sink_event): Reset last seen position after flushing so that we don't report the old position anymore. --- ChangeLog | 6 ++++++ libs/gst/base/gstbasesink.c | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index dd66e85ef1..f57211aa22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-25 Wim Taymans + + * libs/gst/base/gstbasesink.c: (gst_base_sink_event): + Reset last seen position after flushing so that we don't report the old + position anymore. + 2007-10-25 Jan Schmidt * gst/gstelementfactory.c: (gst_element_register): diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index 4491b15d23..a926da5d56 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -2323,6 +2323,11 @@ gst_base_sink_event (GstPad * pad, GstEvent * event) gst_segment_init (basesink->abidata.ABI.clip_segment, GST_FORMAT_UNDEFINED); basesink->have_newsegment = FALSE; + /* for position reporting */ + GST_OBJECT_LOCK (basesink); + basesink->priv->current_sstart = -1; + basesink->priv->current_sstop = -1; + GST_OBJECT_UNLOCK (basesink); gst_event_unref (event); break;