[Spice-devel] [PATCH spice-server 6/6] Allows to have more than 1 QXL device

Frediano Ziglio fziglio at redhat.com
Fri Oct 28 10:59:56 UTC 2016


This was introduced with 96e94c6f32d4345ea25ef7a474fbd92de03b38ad
(Convert RedChannel hierarchy to GObject).
The id of CursorChannel/DisplayChannel were always 0 causing
a wrong assertion on the code.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/cursor-channel.c  | 1 +
 server/display-channel.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/server/cursor-channel.c b/server/cursor-channel.c
index df3561a..8887691 100644
--- a/server/cursor-channel.c
+++ b/server/cursor-channel.c
@@ -312,6 +312,7 @@ CursorChannel* cursor_channel_new(RedsState *server, QXLInstance *qxl,
                         "spice-server", server,
                         "core-interface", core,
                         "channel-type", SPICE_CHANNEL_CURSOR,
+                        "id", qxl->id,
                         "migration-flags", 0,
                         "qxl", qxl,
                         "handle-acks", TRUE,
diff --git a/server/display-channel.c b/server/display-channel.c
index 63f9986..b483b57 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -1988,6 +1988,7 @@ DisplayChannel* display_channel_new(RedsState *reds,
                            "spice-server", reds,
                            "core-interface", core,
                            "channel-type", SPICE_CHANNEL_DISPLAY,
+                           "id", qxl->id,
                            "migration-flags",
                            (SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER),
                            "qxl", qxl,
-- 
2.7.4



More information about the Spice-devel mailing list