[Spice-devel] PATCH][subject corrected]spice-core.c: fix error by using spice_server_version < 0.6.0

Ryo Takaishi r_takaishi at eiliant.com
Thu Oct 28 16:15:12 PDT 2010


Sorry, I resend because I missed subject.
---

If SPICE_SERVER_VERSION < 0.6.0, occur error unused variable
'streaming_video'.
So, move streaming_video to block.

---
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 813cc10..1b51924 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -325,7 +325,7 @@ void qemu_spice_init(void)
     char *x509_key_file = NULL,
         *x509_cert_file = NULL,
         *x509_cacert_file = NULL;
-    int port, tls_port, len, addr_flags, streaming_video;
+    int port, tls_port, len, addr_flags;
     spice_image_compression_t compression;
     spice_wan_compression_t wan_compr;

@@ -429,8 +429,11 @@ void qemu_spice_init(void)

     str = qemu_opt_get(opts, "streaming-video");
     if (str) {
+       {
+       int streaming_video;
         streaming_video = parse_stream_video(str);
         spice_server_set_streaming_video(spice_server, streaming_video);
+       }
     }

     spice_server_set_agent_mouse

--
Ryo Takaishi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20101029/2885bec7/attachment.html>


More information about the Spice-devel mailing list