Merge branch 'spice-vnc-default-audio-backend' into 'master'

src/qemu/qemu_domain.c: Fix overriding audioBackend in qemuDomainDefSuggestDefaultAudioBackend

See merge request libvirt/libvirt!271
This commit is contained in:
antonios-f 2024-03-28 21:27:21 +00:00
commit 9ecbd4c326

View File

@ -3951,8 +3951,10 @@ qemuDomainDefSuggestDefaultAudioBackend(virQEMUDriver *driver,
audioPassthrough = true; audioPassthrough = true;
} else { } else {
audioPassthrough = false; audioPassthrough = false;
if (!*addAudio) {
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; *audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE;
} }
}
*addAudio = true; *addAudio = true;
break; break;
case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: case VIR_DOMAIN_GRAPHICS_TYPE_SPICE: