diff --git a/src/player.c b/src/player.c index 33a872b4..08cebd61 100644 --- a/src/player.c +++ b/src/player.c @@ -2143,9 +2143,6 @@ playback_next_bh(void *arg, int *retval) worker_execute(skipcount_inc_cb, &id, sizeof(int), 5); } - if (consume) - db_queue_delete_byitemid(pb_session.playing_now->item_id); - queue_item = queue_item_next(pb_session.playing_now->item_id); if (!queue_item) { @@ -2153,6 +2150,9 @@ playback_next_bh(void *arg, int *retval) goto error; } + if (consume) + db_queue_delete_byitemid(pb_session.playing_now->item_id); + ret = pb_session_start(queue_item, 0); free_queue_item(queue_item, 0); if (ret < 0)