Commit cf631fca authored by Max Kellermann's avatar Max Kellermann

output/alsa: check GetFrames()>0 instead of IsEmpty() in WriteFromPeriodBuffer()

parent f0ac63d5
......@@ -311,8 +311,8 @@ private:
}
snd_pcm_sframes_t WriteFromPeriodBuffer() noexcept {
assert(!period_buffer.IsEmpty());
assert(period_buffer.IsFull());
assert(period_buffer.GetFrames(out_frame_size) > 0);
auto frames_written = snd_pcm_writei(pcm, period_buffer.GetHead(),
period_buffer.GetFrames(out_frame_size));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment