summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 87e6a8fb60..ccdac3b042 100644
--- a/player/video.c
+++ b/player/video.c
@@ -926,7 +926,7 @@ void write_video(struct MPContext *mpctx, double endpts)
if (!mpctx->step_frames && !opts->pause)
pause_player(mpctx);
}
- if (mpctx->max_frames == 0)
+ if (mpctx->max_frames == 0 && !mpctx->stop_play)
mpctx->stop_play = AT_END_OF_FILE;
if (mpctx->max_frames > 0)
mpctx->max_frames--;