aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-23 06:32:26 +0100
committerMax Kellermann <max@duempel.org>2009-01-23 11:32:36 +0100
commitcfbafbefdce5b18ac59c81d09f8d229630b6dbcd (patch)
tree5c8d78d83bb8ccad3a75b34c286522a6c9b9232f
parent5d31e7e7d2d524279fe2ae857901ceb73ff6e7b2 (diff)
downloadmpd-cfbafbefdce5b18ac59c81d09f8d229630b6dbcd.tar.gz
mpd-cfbafbefdce5b18ac59c81d09f8d229630b6dbcd.tar.xz
mpd-cfbafbefdce5b18ac59c81d09f8d229630b6dbcd.zip
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.
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
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);