summaryrefslogtreecommitdiff
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-06-28 08:27:48 +0200
committerMax Kellermann <max@musicpd.org>2019-06-28 09:10:16 +0200
commitc926021599c77b3011beec856cad535a5bedb1af (patch)
tree2afa286d255d04f44c0974fbe7f239e8eedb752e /src/output
parent543776d9c94763a6870511ed569df2fd7eda1577 (diff)
output/alsa: always redo DrainInternal() after writing
Draining isn't finished just because the period_buffer has run empty. It is only finished after snd_pcm_drain() has succeeded.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/AlsaOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx
index eefb7f467..16832a1bc 100644
--- a/src/output/plugins/AlsaOutputPlugin.cxx
+++ b/src/output/plugins/AlsaOutputPlugin.cxx
@@ -766,7 +766,7 @@ AlsaOutput::DrainInternal()
/* need to call CopyRingToPeriodBuffer() and
WriteFromPeriodBuffer() again in the next
iteration, so don't finish the drain just yet */
- return period_buffer.IsEmpty();
+ return false;
}
if (!written)