mirror of
https://github.com/mpv-player/mpv
synced 2024-09-28 17:52:52 +02:00
player: make --start-time work with --rebase-start-time=no
This commit is contained in:
parent
18681a7dd2
commit
d0b997d528
@ -1139,6 +1139,9 @@ reopen_file:
|
||||
startpos = start;
|
||||
}
|
||||
if (startpos != MP_NOPTS_VALUE) {
|
||||
if (!opts->rebase_start_time) {
|
||||
startpos += mpctx->demuxer->start_time;
|
||||
}
|
||||
queue_seek(mpctx, MPSEEK_ABSOLUTE, startpos, MPSEEK_DEFAULT, 0);
|
||||
execute_queued_seek(mpctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user