From c926021599c77b3011beec856cad535a5bedb1af Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 28 Jun 2019 08:27:48 +0200 Subject: 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. --- src/output/plugins/AlsaOutputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/output') 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) -- cgit v1.2.3