mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 16:59:25 +00:00
Do not compress bitmaps on UNIX socket
On UNIX socket do not perform unnecessary image compression
This commit is contained in:
parent
423fbe9fcd
commit
6b4c036bdb
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user