mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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:
parent
657999b04f
commit
d0ae9b429a
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user