mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 21:25:25 +00:00
src/qemu/qemu_domain.c: Fix overriding audioBackend in qemuDomainDefSuggestDefaultAudioBackend
If we have Spice and VNC graphics in domain XML, and Spice graphics defined before VNC, audioBackend will be overrided in qemuDomainDefSuggestDefaultAudioBackend to VIR_DOMAIN_AUDIO_TYPE_NONE, and we will have no sound in Spice session, like this https://bugs.launchpad.net/qemu/+bug/1900352. If the flag addAudio already set, we do not need to override audioBackend. This commit fix the issue.
This commit is contained in:
parent
d7fb8deb6a
commit
971753af89
@ -3920,7 +3920,9 @@ qemuDomainDefSuggestDefaultAudioBackend(virQEMUDriver *driver,
|
||||
audioPassthrough = true;
|
||||
} else {
|
||||
audioPassthrough = false;
|
||||
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE;
|
||||
if (!*addAudio) {
|
||||
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE;
|
||||
}
|
||||
}
|
||||
*addAudio = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user