basesink: reset START_TIME when needed

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=685870
This commit is contained in:
Wim Taymans 2012-11-20 16:19:16 +01:00 committed by Tim-Philipp Müller
parent 14d2fcdf8b
commit 3c8f5c0d1c

View file

@ -2788,6 +2788,7 @@ gst_base_sink_flush_stop (GstBaseSink * basesink, GstPad * pad,
basesink->have_newsegment = FALSE;
if (reset_time) {
gst_segment_init (&basesink->segment, GST_FORMAT_UNDEFINED);
GST_ELEMENT_START_TIME (basesink) = 0;
}
}
GST_OBJECT_UNLOCK (basesink);