mirror of https://github.com/mpv-player/mpv
player: show correct playback time with --keep-open --no-video
Whatever.
This commit is contained in:
parent
e12fae8ef5
commit
53c288d364
|
@ -766,7 +766,8 @@ static void handle_keep_open(struct MPContext *mpctx)
|
|||
struct MPOpts *opts = mpctx->opts;
|
||||
if (opts->keep_open && mpctx->stop_play == AT_END_OF_FILE) {
|
||||
mpctx->stop_play = KEEP_PLAYING;
|
||||
mpctx->playback_pts = mpctx->last_vo_pts;
|
||||
if (mpctx->d_video)
|
||||
mpctx->playback_pts = mpctx->last_vo_pts;
|
||||
if (!mpctx->opts->pause)
|
||||
pause_player(mpctx);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue