From 53c288d364c86aae6ec7b0eab40ef31a59d03644 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 24 Sep 2014 01:37:07 +0200 Subject: player: show correct playback time with --keep-open --no-video Whatever. --- player/playloop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index e251b32f31..fc3259de01 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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); } -- cgit v1.2.3