player: don't call STOP before CLOSE_AUDIO
playerWait() stops the player thread (twice!) and closes the output device. It should be well enough to just send CLOSE_AUDIO, without STOP. This requires a tiny change to the player thread code: make it break when CLOSE_AUDIO is sent.
This commit is contained in:
@@ -224,7 +224,8 @@ static void decodeParent(void)
|
||||
while (1) {
|
||||
processDecodeInput(&do_pause, &bbp, &do_xfade,
|
||||
&decodeWaitedOn, &next);
|
||||
if (pc.command == PLAYER_COMMAND_STOP) {
|
||||
if (pc.command == PLAYER_COMMAND_STOP ||
|
||||
pc.command == PLAYER_COMMAND_CLOSE_AUDIO) {
|
||||
dropBufferedAudio();
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user