diff options
author | Volker RĂ¼melin <vr_qemu@t-online.de> | 2020-01-23 08:49:35 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-31 08:48:03 +0100 |
commit | d3ed0996712900161ef2ae7fab6b41616086ad30 (patch) | |
tree | a2edee39217dc829c364301e283014b241f4badb /audio | |
parent | 7a4ede0047a8613b0e3b72c9d351038f013dd357 (diff) | |
download | qemu-d3ed0996712900161ef2ae7fab6b41616086ad30.zip qemu-d3ed0996712900161ef2ae7fab6b41616086ad30.tar.gz qemu-d3ed0996712900161ef2ae7fab6b41616086ad30.tar.bz2 |
audio: fix audio_generic_write
The pcm_ops function put_buffer_out expects the returned pointer
of function get_buffer_out as argument. Fix this.
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-Id: <20200123074943.6699-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index f63f397..7226aa6 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1476,7 +1476,7 @@ size_t audio_generic_write(HWVoiceOut *hw, void *buf, size_t size) copy_size = MIN(size, dst_size); memcpy(dst, buf, copy_size); - return hw->pcm_ops->put_buffer_out(hw, buf, copy_size); + return hw->pcm_ops->put_buffer_out(hw, dst, copy_size); } size_t audio_generic_read(HWVoiceIn *hw, void *buf, size_t size) |