<div>hi,</div><div>all sub item of spice graphics need to processed like spice channels, that is adding the following lines:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div> if (!children) {</div>
<div>    virBufferAddLit(buf, ">\n");</div><div>    children = 1;</div><div>}</div></div><div><br></div><div>the following patch is generated base on git master.</div><div>-----------------------------------------------------------------------------------------</div>
<div><div>diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c</div><div>index b30acc8..e42db06 100644</div><div>--- a/src/conf/domain_conf.c</div><div>+++ b/src/conf/domain_conf.c</div><div>@@ -8127,21 +8127,46 @@ virDomainGraphicsDefFormat(virBufferPtr buf,</div>
<div>                               virDomainGraphicsSpiceChannelNameTypeToString(i),</div><div>                               virDomainGraphicsSpiceChannelModeTypeToString(mode));</div><div>         }</div><div>-        if (def->data.spice.image)</div>
<div>+        if (def->data.spice.image) {</div><div>             virBufferAsprintf(buf, "      <image compression='%s'/>\n",</div><div>                               virDomainGraphicsSpiceImageCompressionTypeToString(def->data.spice.image));</div>
<div>-        if (def->data.spice.jpeg)</div><div>+            if (!children) {</div><div>+                virBufferAddLit(buf, ">\n");</div><div>+                children = 1;</div><div>+            }</div>
<div>+        }</div><div>+        if (def->data.spice.jpeg) {</div><div>             virBufferAsprintf(buf, "      <jpeg compression='%s'/>\n",</div><div>                               virDomainGraphicsSpiceJpegCompressionTypeToString(def->data.spice.jpeg));</div>
<div>-        if (def->data.spice.zlib)</div><div>+            if (!children) {</div><div>+                virBufferAddLit(buf, ">\n");</div><div>+                children = 1;</div><div>+            }</div>
<div>+        }</div><div>+        if (def->data.spice.zlib) {</div><div>             virBufferAsprintf(buf, "      <zlib compression='%s'/>\n",</div><div>                               virDomainGraphicsSpiceZlibCompressionTypeToString(def->data.spice.zlib));</div>
<div>-        if (def->data.spice.playback)</div><div>+            if (!children) {</div><div>+                virBufferAddLit(buf, ">\n");</div><div>+                children = 1;</div><div>+            }</div>
<div>+        }</div><div>+        if (def->data.spice.playback) {</div><div>             virBufferAsprintf(buf, "      <playback compression='%s'/>\n",</div><div>                               virDomainGraphicsSpicePlaybackCompressionTypeToString(def->data.spice.playback));</div>
<div>-        if (def->data.spice.streaming)</div><div>+            if (!children) {</div><div>+                virBufferAddLit(buf, ">\n");</div><div>+                children = 1;</div><div>+            }</div>
<div>+        }</div><div>+        if (def->data.spice.streaming) {</div><div>             virBufferAsprintf(buf, "      <streaming mode='%s'/>\n",</div><div>                               virDomainGraphicsSpiceStreamingModeTypeToString(def->data.spice.streaming));</div>
<div>+            if (!children) {</div><div>+                virBufferAddLit(buf, ">\n");</div><div>+                children = 1;</div><div>+            }</div><div>+        }</div><div>     }</div><div> </div>
<div>     if (children) {</div></div><br clear="all"><br>-- <br>Coolper Chen<br>