dcc: Don't disconnect channel, when compression is not supported

Don't disconnect the display channel, when unsupported compression is
requested from the client. Not changing the compression is enough.

https://bugs.freedesktop.org/show_bug.cgi?id=92821
Acked-by: Victor Toso <victortoso@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Lukas Venhoda 2015-12-16 15:51:11 +01:00 committed by Christophe Fergeau
parent b172850200
commit bf9fd235b9

View File

@ -10270,11 +10270,11 @@ static int display_channel_handle_preferred_compression(DisplayChannelClient *dc
case SPICE_IMAGE_COMPRESSION_GLZ:
case SPICE_IMAGE_COMPRESSION_OFF:
display_channel->common.worker->image_compression = pc->image_compression;
return TRUE;
break;
default:
spice_warning("preferred-compression: unsupported image compression setting");
return FALSE;
}
return TRUE;
}
static int display_channel_handle_message(RedChannelClient *rcc, uint32_t size, uint16_t type,