Commit c6a43b69 authored by Max Kellermann's avatar Max Kellermann

player_thread: clear player.queued after failure

When pc.next_song is reset due to a decoder failure, also reset the player.queued flag. player.queued must not be true when there is no pc.next_song.
parent 7d52284a
......@@ -142,6 +142,7 @@ player_wait_for_decoder(struct player *player)
pc.errored_song = dc.next_song;
pc.error = PLAYER_ERROR_FILE;
pc.next_song = NULL;
player->queued = false;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment