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
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel