summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-26 14:01:41 +0200
committerFrediano Ziglio <fziglio@redhat.com>2015-11-24 08:55:16 +0000
commit1b6881c83b8838b9cd0e81ac40a02e67552e8dbe (patch)
treeb033ae7c86929557770c0a1c53641eebd2c02e03 /server
parent81da00bf09b4f5be22c29be9c9458a422fe41121 (diff)
downloadspice-1b6881c83b8838b9cd0e81ac40a02e67552e8dbe.zip
spice-1b6881c83b8838b9cd0e81ac40a02e67552e8dbe.tar.gz
spice-1b6881c83b8838b9cd0e81ac40a02e67552e8dbe.tar.xz
worker: do not set worker image compression on client request
Display client can ask to change the preferred compression. Previously this setting change the entire worker setting so every future client created would have this setting. Remove the setting in the worker make the change only to the current client. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'server')
-rw-r--r--server/red_worker.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index d3a675b..188cb16 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -4810,8 +4810,8 @@ static int display_channel_handle_stream_report(DisplayChannelClient *dcc,
}
static int display_channel_handle_preferred_compression(DisplayChannelClient *dcc,
- SpiceMsgcDisplayPreferredCompression *pc) {
- DisplayChannel *display_channel = DCC_TO_DC(dcc);
+ SpiceMsgcDisplayPreferredCompression *pc)
+{
switch (pc->image_compression) {
case SPICE_IMAGE_COMPRESSION_AUTO_LZ:
case SPICE_IMAGE_COMPRESSION_AUTO_GLZ:
@@ -4822,7 +4822,6 @@ static int display_channel_handle_preferred_compression(DisplayChannelClient *dc
case SPICE_IMAGE_COMPRESSION_LZ:
case SPICE_IMAGE_COMPRESSION_GLZ:
case SPICE_IMAGE_COMPRESSION_OFF:
- display_channel->common.worker->image_compression = pc->image_compression;
dcc->image_compression = pc->image_compression;
return TRUE;
default: