summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/player/misc.c b/player/misc.c
index 1a52be6a82..5e3299645e 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -107,6 +107,10 @@ double get_start_time(struct MPContext *mpctx)
struct demuxer *demuxer = mpctx->demuxer;
if (!demuxer)
return 0;
+ // We reload the demuxer on menu transitions; don't make it use the first
+ // timestamp it finds as start PTS.
+ if (mpctx->nav_state)
+ return 0;
return demuxer_get_start_time(demuxer);
}