diff options
author | Volker RĂ¼melin <vr_qemu@t-online.de> | 2020-01-04 10:11:20 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-01-06 08:47:16 +0100 |
commit | 4db3e634c77a671fadbba6d4d39e0d21232e5609 (patch) | |
tree | c58d34021f606dddb231c31ebde87cf9265da68d /qemu-deprecated.texi | |
parent | c435fea72bbae2c37e4ae375cbecfee0d4a5470c (diff) |
paaudio: drop recording stream in qpa_fini_in
Every call to pa_stream_peek which returns a data length > 0
should have a corresponding pa_stream_drop. A call to qpa_read
does not necessarily call pa_stream_drop immediately after a
call to pa_stream_peek. Test in qpa_fini_in if a last
pa_stream_drop is needed.
This prevents following messages in the libvirt log file after
a recording stream gets closed and a new one opened.
pulseaudio: pa_stream_drop failed
pulseaudio: Reason: Bad state
pulseaudio: pa_stream_drop failed
pulseaudio: Reason: Bad state
To reproduce start qemu with
-audiodev pa,id=audio0,in.mixing-engine=off
and in the guest start and stop Audacity several times.
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20200104091122.13971-3-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qemu-deprecated.texi')
0 files changed, 0 insertions, 0 deletions