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:
parent
0d30d51f07
commit
4a71f66256
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user