output/{alsa,osx}: use ConstBuffer::empty()

This commit is contained in:
Max Kellermann
2019-06-17 22:09:47 +02:00
parent ccc96e25d3
commit 47bb1cd8b5
2 changed files with 2 additions and 2 deletions

View File

@@ -872,7 +872,7 @@ AlsaOutput::Play(const void *chunk, size_t size)
assert(size % in_frame_size == 0);
const auto e = pcm_export->Export({chunk, size});
if (e.size == 0)
if (e.empty())
return size;
std::unique_lock<Mutex> lock(mutex);