mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
player: signal EOF when using --frames
This commit is contained in:
+1
-1
@@ -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
@@ -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--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user