conf: add missing iteration over audio backends

Fixes 9375bc7373caddd31f1ac5c14a69eac5096ea416
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-03-02 13:48:42 +00:00
parent 657999b04f
commit d0ae9b429a

View File

@ -4411,6 +4411,12 @@ virDomainDeviceInfoIterateFlags(virDomainDefPtr def,
if ((rc = cb(def, &device, NULL, opaque)) != 0)
return rc;
}
device.type = VIR_DOMAIN_DEVICE_AUDIO;
for (i = 0; i < def->naudios; i++) {
device.data.audio = def->audios[i];
if ((rc = cb(def, &device, NULL, opaque)) != 0)
return rc;
}
device.type = VIR_DOMAIN_DEVICE_LEASE;
for (i = 0; i < def->nleases; i++) {
device.data.lease = def->leases[i];