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-04-06 06:09:01 +00:00
commit 5609eed33f

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;