| Submitter | Corentin Chary |
|---|---|
| Date | Aug. 11, 2010, 5:49 a.m. |
| Message ID | <1281505785-22523-2-git-send-email-corentincj@iksaif.net> |
| Download | mbox | patch |
| Permalink | /patch/61441/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/ui/vnc.c b/ui/vnc.c index 7fc40ac..3086d95 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -1776,7 +1776,9 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->tight.compression = (enc & 0x0F); break; case VNC_ENCODING_QUALITYLEVEL0 ... VNC_ENCODING_QUALITYLEVEL0 + 9: - vs->tight.quality = (enc & 0x0F); + if (vs->vd->lossy) { + vs->tight.quality = (enc & 0x0F); + } break; default: VNC_DEBUG("Unknown encoding: %d (0x%.8x): %d\n", i, enc, enc);
This should not change the current behavior, but if any new encoding try to use the tight quality, it will always be set to -1 when lossy encodings are disabled. Signed-off-by: Corentin Chary <corentincj@iksaif.net> --- ui/vnc.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)