From e1e0d2adbe839e899837216ee5d0ad3c39f0084c Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Thu, 7 Aug 2025 21:24:19 +0200 Subject: [PATCH] fix broken Repeat List playback --- application/playlist.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/application/playlist.c b/application/playlist.c index 17de3d5..b5e2de4 100644 --- a/application/playlist.c +++ b/application/playlist.c @@ -49,8 +49,11 @@ void PlayListPlayNext(MainWindow *win, bool force) { int current = win->playlist.current_track; switch(win->playlist.playback) { default: { - current = 0; - break; + if(current+1 < cxListSize(win->playlist.tracks)) { + current++; + break; + } + return; } case PLAYBACK_REPEAT: { if(force) { @@ -59,7 +62,12 @@ void PlayListPlayNext(MainWindow *win, bool force) { break; } case PLAYBACK_REPEAT_LIST: { - return; + if(current+1 == cxListSize(win->playlist.tracks)) { + current = 0; + } else { + current++; + } + break; } case PLAYBACK_RANDOM: { current = random() % len; -- 2.47.3