From 299bf5c017d90536911eb2b9f91b06f94dbc268c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 15:14:11 +0200 Subject: player: signal EOF when using --frames --- player/playloop.c | 2 +- player/video.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/player/playloop.c b/player/playloop.c index ea1a0e26be..3f53a47377 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -765,7 +765,7 @@ static void handle_sstep(struct MPContext *mpctx) if (mpctx->video_status >= STATUS_EOF) { if (mpctx->max_frames >= 0) - mpctx->stop_play = PT_NEXT_ENTRY; + mpctx->stop_play = AT_END_OF_FILE; if (mpctx->step_frames > 0 && !mpctx->paused) pause_player(mpctx); } diff --git a/player/video.c b/player/video.c index bc80404341..431eb73d6e 100644 --- a/player/video.c +++ b/player/video.c @@ -823,7 +823,7 @@ void write_video(struct MPContext *mpctx, double endpts) pause_player(mpctx); } if (mpctx->max_frames == 0) - mpctx->stop_play = PT_NEXT_ENTRY; + mpctx->stop_play = AT_END_OF_FILE; if (mpctx->max_frames > 0) mpctx->max_frames--; } -- cgit v1.2.3