summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index 94d0b2bd5d..3d04a3720d 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -208,6 +208,7 @@ void reselect_demux_stream(struct MPContext *mpctx, struct track *track)
double pts = get_current_time(mpctx);
if (pts == MP_NOPTS_VALUE)
pts = 0;
+ pts += get_track_seek_offset(mpctx, track);
demux_seek(track->demuxer, pts, 0);
}
}