oggdemux: accumulate base time

Base time should be accumulated so non flushing seeks have the expected base.
Not accumulating result in segments appearing as "too late" and so are not
played by the sink.

https://bugzilla.gnome.org/show_bug.cgi?id=735509
This commit is contained in:
Guillaume Desmottes 2014-08-29 14:00:06 +02:00 committed by Sebastian Dröge
parent 5fc94da399
commit 3c8d3465bf

View file

@ -4186,7 +4186,7 @@ gst_ogg_demux_handle_page (GstOggDemux * ogg, ogg_page * page)
segment.start = start;
segment.stop = chain->segment_stop;
segment.time = chain->begin_time;
segment.base = chain->begin_time;
segment.base += chain->begin_time;
event = gst_event_new_segment (&segment);
gst_event_set_seqnum (event, ogg->seqnum);