mirror of
https://github.com/mpv-player/mpv
synced 2024-11-03 03:19:24 +01: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;
|
startpos = start;
|
||||||
}
|
}
|
||||||
if (startpos != MP_NOPTS_VALUE) {
|
if (startpos != MP_NOPTS_VALUE) {
|
||||||
|
if (!opts->rebase_start_time) {
|
||||||
|
startpos += mpctx->demuxer->start_time;
|
||||||
|
}
|
||||||
queue_seek(mpctx, MPSEEK_ABSOLUTE, startpos, MPSEEK_DEFAULT, 0);
|
queue_seek(mpctx, MPSEEK_ABSOLUTE, startpos, MPSEEK_DEFAULT, 0);
|
||||||
execute_queued_seek(mpctx);
|
execute_queued_seek(mpctx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user