From cfbafbefdce5b18ac59c81d09f8d229630b6dbcd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 23 Jan 2009 06:32:26 +0100 Subject: playlist: don't shuffle if not in random mode One of the previous patches removed the "random" mode check from nextSongInPlaylist(), which caused a shuffle whenever MPD wrapped to the first song in "repeat" mode. Re-add that "random" check. --- src/playlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlist.c b/src/playlist.c index 6fb0e9227..00341ce06 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -772,7 +772,7 @@ void nextSongInPlaylist(void) return; } - if (next_order == 0) { + if (next_order == 0 && playlist.queue.random) { assert(playlist.queue.repeat); queue_shuffle_order(&playlist.queue); -- cgit v1.2.3