1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-22 07:46:55 +00:00

player: dvdnav: fix start time when entering and leaving menu

Unfortunately, quite a hack, because we have check the nav state
outside of discnav.c.
This commit is contained in:
wm4 2014-03-30 07:31:02 +02:00
parent 67f653324a
commit cc1f926441

View File

@ -106,6 +106,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);
}