diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-14 11:48:04 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-14 11:48:55 +0100 |
commit | 020371f145705a69cb7b4a0188d144ca78d2d57e (patch) | |
tree | c9ff7e5dc6efc01520ae47e9a31b70c7bec147b1 /src/output | |
parent | ccafe3f3cf361ff1c2862c0eb45d96501d67d6a7 (diff) |
output/alsa: wake up the client thread after generating silence
Fixes a theoretical race condition which could occur in Drain() (but
was extremely unlikely).
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/plugins/AlsaOutputPlugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index ee1487fb0..b258ed1fd 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -964,6 +964,7 @@ try { { const std::lock_guard<Mutex> lock(mutex); active = false; + cond.signal(); } /* avoid race condition: see if data has |