From d822bdec0700b94d83f2e15c2aa6602307179724 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 23 Aug 2008 15:49:14 -0700 Subject: change queueNextSongInPlaylist assertion to check There are still some places where we try to call this function without the playlist being stopped. It's really harmless, to call it and just break out immediately, so change the assertion. --- src/playlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/playlist.c b/src/playlist.c index 9839cc346..fa355bcaa 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -525,7 +525,8 @@ static int next_order_num(void) static void queueNextSongInPlaylist(void) { - assert(playlist_state == PLAYLIST_STATE_PLAY); + if (playlist_state != PLAYLIST_STATE_PLAY) + return; /* DEBUG("%s:%d\n", __func__, __LINE__); */ if (pthread_mutex_trylock(&queue_lock) == EBUSY) return; /* still decoding */ -- cgit v1.2.3