Commit 4a71f662 authored by Max Kellermann's avatar Max Kellermann

player: reset pc.command when decoder startup fails

When the decoder failed to start, the function do_play() returned, still having pc.command==PLAY. This is because pc.command was reset only when the decoder started up successfully. Add another player_command_finished() call in the error handler.
parent 0d30d51f
......@@ -246,6 +246,7 @@ static void do_play(void)
dc_start(&pc.notify, pc.next_song);
if (waitOnDecode(&player) < 0) {
quitDecode();
player_command_finished();
return;
}
......
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