summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 15:14:11 +0200
committerAlessandro Ghedini <alessandro@ghedini.me>2014-10-15 15:15:53 +0200
commit4a0e50d2a6286489014c90d3bd98d9bdb8cbeff0 (patch)
treec2e46d801b7d953c9bfdd8f181e4a0a2854f0fad
parenta6eb0714fa25f083959491abf631549deb51047a (diff)
downloadmpv-4a0e50d2a6286489014c90d3bd98d9bdb8cbeff0.tar.bz2
mpv-4a0e50d2a6286489014c90d3bd98d9bdb8cbeff0.tar.xz
player: signal EOF when using --frames
-rw-r--r--player/playloop.c2
-rw-r--r--player/video.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c
index e702f1359d..59ee98ba55 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -748,7 +748,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 fc56bea72e..3576ff0bc8 100644
--- a/player/video.c
+++ b/player/video.c
@@ -806,7 +806,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--;
}