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
1 changed files with 3 additions and 0 deletions

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