output/osx: fix CI failure

This commit is contained in:
Max Kellermann 2022-07-12 13:37:45 +02:00
parent 52eff41379
commit eb589b0a46

View File

@ -773,7 +773,7 @@ OSXOutput::Open(AudioFormat &audio_format)
std::size_t std::size_t
OSXOutput::Play(std::span<const std::byte> input) OSXOutput::Play(std::span<const std::byte> input)
{ {
assert(size > 0); assert(!input.empty());
pause = false; pause = false;
@ -781,7 +781,7 @@ OSXOutput::Play(std::span<const std::byte> input)
if (dop_enabled) { if (dop_enabled) {
input = pcm_export->Export(input); input = pcm_export->Export(input);
if (input.empty()) if (input.empty())
return size; return input.size();
} }
#endif #endif