diff --git a/src/contrib/coreaudioout/CoreAudioOut.cpp b/src/contrib/coreaudioout/CoreAudioOut.cpp index e0999d08a..7eaa69ce0 100644 --- a/src/contrib/coreaudioout/CoreAudioOut.cpp +++ b/src/contrib/coreaudioout/CoreAudioOut.cpp @@ -79,7 +79,9 @@ void CoreAudioOut::NotifyBufferCompleted(BufferContext *context) { this->buffers.erase(it); found = true; } - ++it; + else { + ++it; + } } }