diff options
author | Aman Gupta <aman@tmm1.net> | 2016-10-20 11:19:43 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-22 18:48:27 +0200 |
commit | d0b997d5287966245a4f368af64e2b0c72bd3a1a (patch) | |
tree | 45df75d817b1449799e06271efae13640851b796 /player/loadfile.c | |
parent | 18681a7dd26cacac9a9df9aac696d5c4f172b34d (diff) | |
download | mpv-d0b997d5287966245a4f368af64e2b0c72bd3a1a.tar.bz2 mpv-d0b997d5287966245a4f368af64e2b0c72bd3a1a.tar.xz |
player: make --start-time work with --rebase-start-time=no
Diffstat (limited to 'player/loadfile.c')
-rw-r--r-- | player/loadfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |