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.
This commit is contained in:
Max Kellermann 2008-10-27 10:10:40 +01:00
parent 0d30d51f07
commit 4a71f66256

View File

@ -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;
}