player: signal EOF when using --frames

This commit is contained in:
wm4
2014-10-15 15:15:53 +02:00
committed by Alessandro Ghedini
parent a6eb0714fa
commit 4a0e50d2a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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--;
}