* All chunks are full of decoded data; wait for the player to free * one. */
| 84 | * one. |
| 85 | */ |
| 86 | static DecoderCommand |
| 87 | NeedChunks(DecoderControl &dc, std::unique_lock<Mutex> &lock) noexcept |
| 88 | { |
| 89 | if (dc.command == DecoderCommand::NONE) |
| 90 | dc.Wait(lock); |
| 91 | |
| 92 | return dc.command; |
| 93 | } |
| 94 | |
| 95 | static DecoderCommand |
| 96 | LockNeedChunks(DecoderControl &dc) noexcept |