summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-02-25 15:17:48 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-25 17:18:29 +0100
commit6b4c036bdba53ddafde0a706c6de5d2172c09b25 (patch)
tree882558083f727e5794fdfbffeb88861e939ec4a3 /server
parent423fbe9fcd7ed0d5553b99e0a903f91912bac053 (diff)
Do not compress bitmaps on UNIX socket
On UNIX socket do not perform unnecessary image compression
Diffstat (limited to 'server')
-rw-r--r--server/red_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 58cc827b..5deb30b0 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -6811,7 +6811,8 @@ static FillBitsType fill_bits(DisplayChannelClient *dcc, SpiceMarshaller *m,
/* Images must be added to the cache only after they are compressed
in order to prevent starvation in the client between pixmap_cache and
global dictionary (in cases of multiple monitors) */
- if (!red_compress_image(dcc, &image, &simage->u.bitmap,
+ if (reds_stream_get_family(rcc->stream) == AF_UNIX ||
+ !red_compress_image(dcc, &image, &simage->u.bitmap,
drawable, can_lossy, &comp_send_data)) {
SpicePalette *palette;