summaryrefslogtreecommitdiff
path: root/src/input
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/input
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/input')
-rw-r--r--src/input/plugins/AlsaInputPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx
index 801a16fd0..29578ebc8 100644
--- a/src/input/plugins/AlsaInputPlugin.cxx
+++ b/src/input/plugins/AlsaInputPlugin.cxx
@@ -185,6 +185,8 @@ AlsaInputStream::PrepareSockets() noexcept
void
AlsaInputStream::DispatchSockets() noexcept
{
+ non_block.DispatchSockets(*this, capture_handle);
+
const std::lock_guard<Mutex> protect(mutex);
auto w = PrepareWriteBuffer();