mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 17:15:21 +00:00
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>
This commit is contained in:
parent
81da00bf09
commit
1b6881c83b
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user