output/Thread: don't wake up the player after receiving command in Play()
If we have a pending command, then the player thread is already awake. Even if not, we'll wake it up as soon as we have finished the command.
This commit is contained in:
		| @@ -493,7 +493,10 @@ AudioOutput::Play() | ||||
| 		in_playback_loop = false; | ||||
| 	}; | ||||
|  | ||||
| 	while (chunk != nullptr && command == Command::NONE) { | ||||
| 	while (chunk != nullptr) { | ||||
| 		if (command != Command::NONE) | ||||
| 			return true; | ||||
|  | ||||
| 		if (!PlayChunk(chunk)) | ||||
| 			break; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann