summaryrefslogtreecommitdiffstats
path: root/include/ui/qemu-spice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/qemu-spice.h')
-rw-r--r--include/ui/qemu-spice.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index 21fe195e18..a5fbc44706 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -40,10 +40,17 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
#define SPICE_NEEDS_SET_MM_TIME 0
#endif
-#if defined(SPICE_SERVER_VERSION) && (SPICE_SERVER_VERSION >= 0x000f00)
-#define SPICE_HAS_ATTACHED_WORKER 1
-#else
-#define SPICE_HAS_ATTACHED_WORKER 0
+#if defined(SPICE_SERVER_VERSION)
+# if (SPICE_SERVER_VERSION >= 0x000d02)
+# define SPICE_HAS_VIDEO_CODECS 1
+# else
+# define SPICE_HAS_VIDEO_CODECS 0
+# endif
+# if (SPICE_SERVER_VERSION >= 0x000f00)
+# define SPICE_HAS_ATTACHED_WORKER 1
+# else
+# define SPICE_HAS_ATTACHED_WORKER 0
+# endif
#endif
#else /* CONFIG_SPICE */