diff options
author | Max Kellermann <max@musicpd.org> | 2020-07-02 15:08:58 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-07-02 15:08:59 +0200 |
commit | 154170e4755fc53c56652a32b13d82db21ff7c2d (patch) | |
tree | 58befd460f034aad52affff8a23215629d4df419 /src | |
parent | fb83936feb8777c9f244671be1a19e37a4915911 (diff) |
output/osx: clear `pause` flag only after successful AudioOutputUnitStart()
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/OSXOutputPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/plugins/OSXOutputPlugin.cxx b/src/output/plugins/OSXOutputPlugin.cxx index fa65fa437..e87c5c3db 100644 --- a/src/output/plugins/OSXOutputPlugin.cxx +++ b/src/output/plugins/OSXOutputPlugin.cxx @@ -762,12 +762,12 @@ OSXOutput::Play(const void *chunk, size_t size) { assert(size > 0); if (pause) { - pause = false; OSStatus status = AudioOutputUnitStart(au); if (status != 0) { AudioUnitUninitialize(au); throw std::runtime_error("Unable to restart audio output after pause"); } + pause = false; } #ifdef ENABLE_DSD if (dop_enabled) { |