mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 08:55:33 +00:00
qtdemux: Only adjust segment.stop by cslg_shift if stop is not -1
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1294>
This commit is contained in:
parent
bb5a5ae8a8
commit
a33e30cfc4
1 changed files with 5 additions and 2 deletions
|
@ -4959,8 +4959,11 @@ gst_qtdemux_stream_update_segment (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
|||
stream->segment.rate = rate;
|
||||
stream->segment.start = start + QTSTREAMTIME_TO_GSTTIME (stream,
|
||||
stream->cslg_shift);
|
||||
stream->segment.stop = stop + QTSTREAMTIME_TO_GSTTIME (stream,
|
||||
stream->cslg_shift);
|
||||
if (stop != -1)
|
||||
stream->segment.stop = stop + QTSTREAMTIME_TO_GSTTIME (stream,
|
||||
stream->cslg_shift);
|
||||
else
|
||||
stream->segment.stop = stop;
|
||||
stream->segment.time = time;
|
||||
stream->segment.position = stream->segment.start;
|
||||
|
||||
|
|
Loading…
Reference in a new issue