vnc: don't clear zlib stream on set_encoding
authorCorentin Chary <corentincj@iksaif.net>
Wed, 19 May 2010 07:24:06 +0000 (09:24 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Jun 2010 17:53:09 +0000 (12:53 -0500)
commitfd7e1b881bcf04e7d1b8c42ae5fe228d1fac48a4
treee1c7e3209e85adc5affa33cb87a21cdb535a2451
parenta3af141f44ba0d224b49f37d5f69cdf81abfa2da
vnc: don't clear zlib stream on set_encoding

On init, values are already NULL, but we shouldn't try
to reset them each time a client send a set encoding
command because this break everything. For example,
libvncclient re-send a set encoding command if the
framebuffer is resized.

This fix framebuffer resizing for zlib encoding.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc-encoding-zlib.c
vnc.c
vnc.h