summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2016-10-20 11:19:43 -0700
committerwm4 <wm4@nowhere>2016-10-22 18:48:27 +0200
commitd0b997d5287966245a4f368af64e2b0c72bd3a1a (patch)
tree45df75d817b1449799e06271efae13640851b796 /player
parent18681a7dd26cacac9a9df9aac696d5c4f172b34d (diff)
downloadmpv-d0b997d5287966245a4f368af64e2b0c72bd3a1a.tar.bz2
mpv-d0b997d5287966245a4f368af64e2b0c72bd3a1a.tar.xz
player: make --start-time work with --rebase-start-time=no
Diffstat (limited to 'player')
-rw-r--r--player/loadfile.c3
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);
}