mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
player: signal EOF when using --frames
This commit is contained in:
parent
4758866a18
commit
299bf5c017
@ -765,7 +765,7 @@ static void handle_sstep(struct MPContext *mpctx)
|
|||||||
|
|
||||||
if (mpctx->video_status >= STATUS_EOF) {
|
if (mpctx->video_status >= STATUS_EOF) {
|
||||||
if (mpctx->max_frames >= 0)
|
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)
|
if (mpctx->step_frames > 0 && !mpctx->paused)
|
||||||
pause_player(mpctx);
|
pause_player(mpctx);
|
||||||
}
|
}
|
||||||
|
@ -823,7 +823,7 @@ void write_video(struct MPContext *mpctx, double endpts)
|
|||||||
pause_player(mpctx);
|
pause_player(mpctx);
|
||||||
}
|
}
|
||||||
if (mpctx->max_frames == 0)
|
if (mpctx->max_frames == 0)
|
||||||
mpctx->stop_play = PT_NEXT_ENTRY;
|
mpctx->stop_play = AT_END_OF_FILE;
|
||||||
if (mpctx->max_frames > 0)
|
if (mpctx->max_frames > 0)
|
||||||
mpctx->max_frames--;
|
mpctx->max_frames--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user