Home
last modified time | relevance | path

Searched hist:"4 db3e634c77a671fadbba6d4d39e0d21232e5609" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/audio/
H A Dpaaudio.cdiff 4db3e634c77a671fadbba6d4d39e0d21232e5609 Sat Jan 04 03:11:20 CST 2020 Volker Rümelin <vr_qemu@t-online.de> 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>