From d0b997d5287966245a4f368af64e2b0c72bd3a1a Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 20 Oct 2016 11:19:43 -0700 Subject: player: make --start-time work with --rebase-start-time=no --- player/loadfile.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index ec8ddd6004..6ea4479d7a 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -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); } -- cgit v1.2.3