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:
parent
ccafe3f3cf
commit
020371f145
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user