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
parent cf6cfdc058
commit 1471489104

View file

@ -2874,6 +2874,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);