0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02: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;
}
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);
}