mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
tsdemux: fix truncated output segment when seeking with a stop
In disabling the stop adjustment for negative rates in
03031037fa
, two instructions
were inverted resulting in the stop always being adjusted by
0
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2182>
This commit is contained in:
parent
be2996c48e
commit
0fb7392131
1 changed files with 1 additions and 2 deletions
|
@ -2616,10 +2616,9 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream,
|
||||||
} else if (base->out_segment.start < firstts) {
|
} else if (base->out_segment.start < firstts) {
|
||||||
/* Take into account the offset to the first buffer timestamp */
|
/* Take into account the offset to the first buffer timestamp */
|
||||||
if (base->out_segment.rate > 0) {
|
if (base->out_segment.rate > 0) {
|
||||||
base->out_segment.start = firstts;
|
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (base->out_segment.stop))
|
if (GST_CLOCK_TIME_IS_VALID (base->out_segment.stop))
|
||||||
base->out_segment.stop += firstts - base->out_segment.start;
|
base->out_segment.stop += firstts - base->out_segment.start;
|
||||||
|
base->out_segment.start = firstts;
|
||||||
base->out_segment.position = firstts;
|
base->out_segment.position = firstts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue