On Wed, Dec 16, 2015 at 03:31:46PM +0100, Lukas Venhoda wrote: > Don't disconnect the display channel, when unsupported compression is > requested from the client. Not changing the compression is enough. > --- > Changes since v1: > - Not only for lz4, but now for all unsupported compressions > --- > server/dcc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/server/dcc.c b/server/dcc.c > index b2ee7a6..3135733 100644 > --- a/server/dcc.c > +++ b/server/dcc.c > @@ -1361,11 +1361,10 @@ 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; Don't you need a break; now? Reviewed-by: Victor Toso <victortoso@xxxxxxxxxx> > 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) > -- > 2.5.0 > > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > http://lists.freedesktop.org/mailman/listinfo/spice-devel _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel