Commit 020371f1 authored by Max Kellermann's avatar Max Kellermann

output/alsa: wake up the client thread after generating silence

Fixes a theoretical race condition which could occur in Drain() (but was extremely unlikely).
parent ccafe3f3
...@@ -964,6 +964,7 @@ try { ...@@ -964,6 +964,7 @@ try {
{ {
const std::lock_guard<Mutex> lock(mutex); const std::lock_guard<Mutex> lock(mutex);
active = false; active = false;
cond.signal();
} }
/* avoid race condition: see if data has /* avoid race condition: see if data has
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment