summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Izen <leo.izen@gmail.com>2021-11-20 05:54:07 -0500
committerLeo Izen <leo.izen@gmail.com>2021-11-28 19:45:52 -0500
commitac39af461d5b7763f7285c28a998c1c3e3ec9f73 (patch)
tree8a3749535d99195b83ca6dde2d23af82810c6219
parent4991ffa859384814e687c25d25d739f9db5f9033 (diff)
downloadmpv-ac39af461d5b7763f7285c28a998c1c3e3ec9f73.tar.bz2
mpv-ac39af461d5b7763f7285c28a998c1c3e3ec9f73.tar.xz
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.
-rw-r--r--player/playloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c
index c0658ac6af..d0e7d26526 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -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) {