aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-13 22:17:18 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-13 22:17:18 -0700
commit0641819a0308dd1b0012450dfd5821946f6c3bdc (patch)
tree1de9afc99a9e34e8524c298d3767124ea7a35739
parent65688ec9e8841fb11c166d3e480dbada01d99746 (diff)
downloadmpd-0641819a0308dd1b0012450dfd5821946f6c3bdc.tar.gz
mpd-0641819a0308dd1b0012450dfd5821946f6c3bdc.tar.xz
mpd-0641819a0308dd1b0012450dfd5821946f6c3bdc.zip
playlist: fix setting of random
Noticed-by: Qball I mismerged 4a510a26744a78696f0c69713bf3b05881175fef in commit 5f15ba96cf5fa641d34d4e98ae8e0972fa6fef0c "playlist: simplified setPlaylistRandomStatus()
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 8a7b5cf7f..ad81e1cb6 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -1147,7 +1147,7 @@ static void randomizeOrder(int start, int end)
void setPlaylistRandomStatus(int status)
{
if (status != playlist.random) {
- if (playlist.random)
+ if ((playlist.random = status))
randomizeOrder(0, playlist.length - 1);
else
orderPlaylist();