mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
tsdemux: accumulate previous segment base time
This commit is contained in:
parent
29fd6332a4
commit
4a219df304
1 changed files with 2 additions and 1 deletions
|
@ -1998,7 +1998,8 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream)
|
|||
demux->segment = base->segment;
|
||||
} else {
|
||||
/* Start from the first ts/pts */
|
||||
GstClockTime base = demux->segment.position - demux->segment.start;
|
||||
GstClockTime base =
|
||||
demux->segment.base + demux->segment.position - demux->segment.start;
|
||||
gst_segment_init (&demux->segment, GST_FORMAT_TIME);
|
||||
demux->segment.start = firstts;
|
||||
demux->segment.stop = GST_CLOCK_TIME_NONE;
|
||||
|
|
Loading…
Reference in a new issue