summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-24 01:37:07 +0200
committerwm4 <wm4@nowhere>2014-09-24 01:37:07 +0200
commit53c288d364c86aae6ec7b0eab40ef31a59d03644 (patch)
tree61e1865e1d79347a1df54a24e16a74405632394f /player
parente12fae8ef5778c960bba835b5603bd5d1bc08025 (diff)
downloadmpv-53c288d364c86aae6ec7b0eab40ef31a59d03644.tar.bz2
mpv-53c288d364c86aae6ec7b0eab40ef31a59d03644.tar.xz
player: show correct playback time with --keep-open --no-video
Whatever.
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c3
1 files changed, 2 insertions, 1 deletions
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);
}