[libvirt PATCH 05/18] conf: add missing iteration over audio backends

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes 9375bc7373caddd31f1ac5c14a69eac5096ea416
Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 src/conf/domain_conf.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 2837ad67a7..34d1673546 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -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];
-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux