summaryrefslogtreecommitdiffstats
path: root/server/red_dispatcher.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2015-09-15 18:03:03 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2015-09-24 11:06:42 +0200
commit1aa5185de2f5e45946f635a214aa6da9d804986f (patch)
tree18fd71f0a435bc983e97ebbd0eabf75143c32c12 /server/red_dispatcher.c
parentc309e761e8a6d55b64fd14804ccdaaea683929ad (diff)
downloadspice-1aa5185de2f5e45946f635a214aa6da9d804986f.tar.gz
spice-1aa5185de2f5e45946f635a214aa6da9d804986f.tar.xz
spice-1aa5185de2f5e45946f635a214aa6da9d804986f.zip
display: Advertise preferred compression cap
The patches adding a way for the client to set its preferred compression method added a new capability so that the server can indicate support for this feature. However, spice-server was not setting this capability on its display channel, which means clients are not going to try to send 'preferred-compression' messages even though the user request it.
Diffstat (limited to 'server/red_dispatcher.c')
-rw-r--r--server/red_dispatcher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c
index 6d7756ce..b11cd423 100644
--- a/server/red_dispatcher.c
+++ b/server/red_dispatcher.c
@@ -1153,6 +1153,7 @@ void red_dispatcher_init(QXLInstance *qxl)
red_channel_register_client_cbs(display_channel, &client_cbs);
red_channel_set_data(display_channel, red_dispatcher);
red_channel_set_cap(display_channel, SPICE_DISPLAY_CAP_MONITORS_CONFIG);
+ red_channel_set_cap(display_channel, SPICE_DISPLAY_CAP_PREF_COMPRESSION);
red_channel_set_cap(display_channel, SPICE_DISPLAY_CAP_STREAM_REPORT);
reds_register_channel(display_channel);
}