mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
tsdemux: Do not tweak segments on reverse playback
We can't compare the first buffer start and the segment start in that case... playback is going backward! https://bugzilla.gnome.org/show_bug.cgi?id=734445
This commit is contained in:
parent
03b70aecec
commit
03031037fa
1 changed files with 7 additions and 4 deletions
|
@ -1965,10 +1965,13 @@ calculate_and_push_newsegment (GstTSDemux * demux, TSDemuxStream * stream)
|
||||||
}
|
}
|
||||||
} else if (demux->segment.start < firstts) {
|
} else if (demux->segment.start < firstts) {
|
||||||
/* Take into account the offset to the first buffer timestamp */
|
/* Take into account the offset to the first buffer timestamp */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (demux->segment.stop))
|
if (demux->segment.rate > 0) {
|
||||||
demux->segment.stop += firstts - demux->segment.start;
|
demux->segment.start = firstts;
|
||||||
demux->segment.position = firstts;
|
|
||||||
demux->segment.start = firstts;
|
if (GST_CLOCK_TIME_IS_VALID (demux->segment.stop) )
|
||||||
|
demux->segment.stop += firstts - demux->segment.start;
|
||||||
|
demux->segment.position = firstts;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!demux->segment_event) {
|
if (!demux->segment_event) {
|
||||||
|
|
Loading…
Reference in a new issue