aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/playlist.c3
1 files changed, 2 insertions, 1 deletions
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 */