diff --git a/src/audio_core/cubeb_input.cpp b/src/audio_core/cubeb_input.cpp index 8d1af2b2be..f191fd8cd3 100644 --- a/src/audio_core/cubeb_input.cpp +++ b/src/audio_core/cubeb_input.cpp @@ -114,7 +114,8 @@ long CubebInput::Impl::DataCallback(cubeb_stream* stream, void* user_data, const } u8 const* data = reinterpret_cast(input_buffer); - impl->sample_queue->Push(std::vector(data, data + num_frames * impl->sample_size_in_bytes)); + std::vector samples{data, data + num_frames * impl->sample_size_in_bytes}; + impl->sample_queue->Push(samples); // returning less than num_frames here signals cubeb to stop sampling return num_frames;