summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index 5b3f1fe4..0e334767 100644
--- a/playlist.c
+++ b/playlist.c
@@ -281,14 +281,16 @@ plt_set_curr (int plt) {
int i;
PLT_LOCK;
playlist_t *p = playlists_head;
- for (i = 0; p && i < plt; i++) {
+ for (i = 0; p && p->next && i < plt; i++) {
p = p->next;
}
+#if 0
if (i != plt) {
PLT_UNLOCK;
trace ("plt_set_curr %d failed\n", plt);
return;
}
+#endif
if (p != playlist) {
playlist = p;
if (!plt_loading) {