Browse Source
Merge pull request #11778 from liamwhite/audren-shutdown-lock
audio: fix shutdown deadlock in audio renderer
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/audio_core/sink/sink_stream.cpp
|
|
|
@ -204,6 +204,10 @@ void SinkStream::ProcessAudioOutAndRender(std::span<s16> output_buffer, std::siz |
|
|
|
// paused and we'll desync, so just play silence.
|
|
|
|
if (system.IsPaused() || system.IsShuttingDown()) { |
|
|
|
if (system.IsShuttingDown()) { |
|
|
|
{ |
|
|
|
std::scoped_lock lk{release_mutex}; |
|
|
|
queued_buffers.store(0); |
|
|
|
} |
|
|
|
release_cv.notify_one(); |
|
|
|
} |
|
|
|
|
|
|
|
|