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;