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.
This commit is contained in:
Wim Taymans 2007-10-25 17:20:47 +00:00
parent 9d3de77ba7
commit cf21248714
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2007-10-25 Wim Taymans <wim.taymans@gmail.com>
* 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 <Jan.Schmidt@sun.com>
* gst/gstelementfactory.c: (gst_element_register):

View file

@ -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;