summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-11-08 14:29:04 +0100
committerMax Kellermann <max@musicpd.org>2018-11-11 12:37:29 +0100
commitfee75dc766995d9946af03b40861f19412b5edd9 (patch)
tree242adc4b5e923f637cfc1df9ca3c38dd54094856 /src/output
parentba5c856f154fcfbbb6643e32e020c1c3bc2e8feb (diff)
{output,mixer}/alsa: use snd_pcm_poll_descriptors_revents()
This call was missing, causing very high CPU usage when the ALSA output plugin was used with dmix. Closes #391
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/AlsaOutputPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx
index 02b3dfe86..8d875ed26 100644
--- a/src/output/plugins/AlsaOutputPlugin.cxx
+++ b/src/output/plugins/AlsaOutputPlugin.cxx
@@ -889,6 +889,8 @@ AlsaOutput::PrepareSockets() noexcept
void
AlsaOutput::DispatchSockets() noexcept
try {
+ non_block.DispatchSockets(*this, pcm);
+
{
const std::lock_guard<Mutex> lock(mutex);