mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
tsdemux: always take the seek segment stop into account
Even if an accurate seek was not requested, we should still respect the seek stop.
This commit is contained in:
parent
b4a298c80e
commit
bc4c221be3
1 changed files with 3 additions and 1 deletions
|
@ -2507,9 +2507,11 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream,
|
|||
GstSegment *seg = &base->out_segment;
|
||||
GstClockTime base =
|
||||
seg->base + seg->position - (seg->start + seg->offset);
|
||||
GstClockTime stop = seg->stop;
|
||||
|
||||
gst_segment_init (seg, GST_FORMAT_TIME);
|
||||
seg->start = firstts;
|
||||
seg->stop = GST_CLOCK_TIME_NONE;
|
||||
seg->stop = MAX (seg->start, stop);
|
||||
seg->position = firstts;
|
||||
seg->time = firstts;
|
||||
seg->rate = demux->rate;
|
||||
|
|
Loading…
Reference in a new issue