From c1eb0583c4332fdfd88a2d83c85ad468e94bb7b7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Jun 2019 21:22:52 +0200 Subject: [PATCH] output/alsa: add "full" assertion to WriteFromPeriodBuffer() --- src/output/plugins/AlsaOutputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index b2316e865..cae0d04ac 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -312,6 +312,7 @@ private: snd_pcm_sframes_t WriteFromPeriodBuffer() noexcept { assert(!period_buffer.IsEmpty()); + assert(period_buffer.IsFull()); auto frames_written = snd_pcm_writei(pcm, period_buffer.GetHead(), period_buffer.GetFrames(out_frame_size));