summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
Diffstat (limited to 'player')
-rw-r--r--player/video.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/player/video.c b/player/video.c
index 873ff632a5..7bccdefb34 100644
--- a/player/video.c
+++ b/player/video.c
@@ -1101,11 +1101,14 @@ void write_video(struct MPContext *mpctx, double endpts)
return;
if (r == VD_EOF) {
+ int prev_state = mpctx->video_status;
mpctx->video_status =
vo_still_displaying(vo) ? STATUS_DRAINING : STATUS_EOF;
mpctx->delay = 0;
mpctx->last_av_difference = 0;
MP_DBG(mpctx, "video EOF (status=%d)\n", mpctx->video_status);
+ if (prev_state != mpctx->video_status)
+ mpctx->sleeptime = 0;
return;
}