player: show correct playback time with --keep-open --no-video

Whatever.
This commit is contained in:
wm4 2014-09-24 01:37:07 +02:00
parent e12fae8ef5
commit 53c288d364
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}