aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-06-19 13:44:17 +0200
committerMax Kellermann <max@duempel.org>2010-06-19 13:45:15 +0200
commit9fb26b5617579129bdae8ca40801086b294fd18f (patch)
tree977f1ef4cdb424b772943e9296d8eb838435f727 /src
parent442b327582ed506ca872d20e03d9c23bea02a4a2 (diff)
downloadmpd-9fb26b5617579129bdae8ca40801086b294fd18f.tar.gz
mpd-9fb26b5617579129bdae8ca40801086b294fd18f.tar.xz
mpd-9fb26b5617579129bdae8ca40801086b294fd18f.zip
playlist: check "queued" before calling playlist_update_queued_song()
Workaround for an assertion failure.
Diffstat (limited to 'src')
-rw-r--r--src/playlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 8929e417b..33a0207c3 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -238,7 +238,7 @@ playlist_sync(struct playlist *playlist)
/* make sure the queued song is always set (if
possible) */
- if (pc.next_song == NULL)
+ if (pc.next_song == NULL && playlist->queued != -1)
playlist_update_queued_song(playlist, NULL);
}
}