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,7 +3951,9 @@ qemuDomainDefSuggestDefaultAudioBackend(virQEMUDriver *driver,
audioPassthrough = true; audioPassthrough = true;
} else { } else {
audioPassthrough = false; audioPassthrough = false;
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE; if (!*addAudio) {
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_NONE;
}
} }
*addAudio = true; *addAudio = true;
break; break;