mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
9d3de77ba7
commit
cf21248714
2 changed files with 11 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue