1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-17 13:17:13 +00:00

player: make --keep-open=always work with --loop-playlist

Allow --keep-open=always to work with --loop-playlist, where
before this patch it would work only on the last playthrough of the
playlist. This patch allows it to work on all playthroughs.

Fixes #9470.
This commit is contained in:
Leo Izen 2021-11-20 05:54:07 -05:00
parent 4991ffa859
commit ac39af461d

View File

@ -945,8 +945,8 @@ static void handle_keep_open(struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;
if (opts->keep_open && mpctx->stop_play == AT_END_OF_FILE &&
(opts->keep_open == 2 || !playlist_get_next(mpctx->playlist, 1)) &&
opts->loop_times == 1)
(opts->keep_open == 2 || !playlist_get_next(mpctx->playlist, 1) &&
opts->loop_times == 1))
{
mpctx->stop_play = KEEP_PLAYING;
if (mpctx->vo_chain) {