diff --git a/src/output/plugins/AlsaOutputPlugin.cxx b/src/output/plugins/AlsaOutputPlugin.cxx index 39f3e8bd1..01dea36ca 100644 --- a/src/output/plugins/AlsaOutputPlugin.cxx +++ b/src/output/plugins/AlsaOutputPlugin.cxx @@ -1201,8 +1201,8 @@ AlsaOutput::Play(const void *chunk, size_t size) if (error) std::rethrow_exception(error); - size_t bytes_written = ring_buffer->push((const uint8_t *)chunk, - size); + size_t bytes_written = ring_buffer->push((const uint8_t *)e.data, + e.size); if (bytes_written > 0) return pcm_export->CalcSourceSize(bytes_written);