summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-21 21:48:50 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-21 21:48:50 +0200
commitc10bf65e2ce9a157d8f9483a9ff8d3fc66ff3309 (patch)
tree38020ed5229e4862aa796d0bd7365ea0b1d275b9 /playlist.c
parentded20935eac98983cb4412ba6a867cf92b6ec1d8 (diff)
disabled shuffle (too slow)
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index ef450267..6bb22191 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1191,6 +1191,7 @@ pl_select_all (void) {
void
pl_shuffle_item (playItem_t *it, int cnt) {
+#if 0
int idx = (float)rand ()/RAND_MAX * (cnt-1);
playItem_t *prev = NULL;
@@ -1214,10 +1215,12 @@ pl_shuffle_item (playItem_t *it, int cnt) {
if (!it->next[PL_SHUFFLE]) {
playlist_tail[PL_SHUFFLE] = it;
}
+#endif
}
void
pl_reshuffle (void) {
+#if 0
playlist_head[PL_SHUFFLE] = playlist_tail[PL_SHUFFLE] = NULL;
for (playItem_t *it = playlist_head[PL_MAIN]; it; it = it->next[PL_MAIN]) {
it->prev[PL_SHUFFLE] = it->next[PL_SHUFFLE] = NULL;
@@ -1226,4 +1229,5 @@ pl_reshuffle (void) {
for (playItem_t *it = playlist_head[PL_MAIN]; it; it = it->next[PL_MAIN]) {
pl_shuffle_item (it, ++i);
}
+#endif
}