1
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:
Aman Gupta 2016-10-20 11:19:43 -07:00 committed by wm4
parent 18681a7dd2
commit d0b997d528

View File

@ -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);
} }