[Spice-commits] server/dcc.c
Victor Toso de Carvalho
victortoso at kemper.freedesktop.org
Thu Dec 17 03:34:05 PST 2015
server/dcc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 6c4f11191c8eb343a53c70a6c79fdb03158ef1df
Author: Lukas Venhoda <lvenhoda at redhat.com>
Date: Wed Dec 16 15:51:11 2015 +0100
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 at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/dcc.c b/server/dcc.c
index b2ee7a6..7c16fc0 100644
--- a/server/dcc.c
+++ b/server/dcc.c
@@ -1361,11 +1361,11 @@ static int dcc_handle_preferred_compression(DisplayChannelClient *dcc,
case SPICE_IMAGE_COMPRESSION_GLZ:
case SPICE_IMAGE_COMPRESSION_OFF:
dcc->image_compression = pc->image_compression;
- return TRUE;
+ break;
default:
spice_warning("preferred-compression: unsupported image compression setting");
- return FALSE;
}
+ return TRUE;
}
int dcc_handle_message(RedChannelClient *rcc, uint32_t size, uint16_t type, void *msg)
More information about the Spice-commits
mailing list