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

Fixes a theoretical race condition which could occur in Drain() (but
was extremely unlikely).
This commit is contained in:
Max Kellermann 2018-11-14 11:48:04 +01:00
parent ccafe3f3cf
commit 020371f145
1 changed files with 1 additions and 0 deletions

View File

@ -964,6 +964,7 @@ try {
{
const std::lock_guard<Mutex> lock(mutex);
active = false;
cond.signal();
}
/* avoid race condition: see if data has