diff options
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/reds.c b/server/reds.c index 392052e0..6b72701f 100644 --- a/server/reds.c +++ b/server/reds.c @@ -91,7 +91,6 @@ SpiceCoreInterface *core = NULL; static pthread_mutex_t *lock_cs; static long *lock_count; -spice_wan_compression_t zlib_glz_state = SPICE_WAN_COMPRESSION_AUTO; int agent_mouse = TRUE; int agent_copypaste = TRUE; int agent_file_xfer = TRUE; @@ -3319,6 +3318,7 @@ SPICE_GNUC_VISIBLE SpiceServer *spice_server_new(void) reds->streaming_video = STREAM_VIDEO_FILTER; reds->image_compression = SPICE_IMAGE_COMPRESS_AUTO_GLZ; reds->jpeg_state = SPICE_WAN_COMPRESSION_AUTO; + reds->zlib_glz_state = SPICE_WAN_COMPRESSION_AUTO; return reds; } @@ -3578,7 +3578,7 @@ SPICE_GNUC_VISIBLE int spice_server_set_zlib_glz_compression(SpiceServer *s, spi return -1; } // todo: support dynamically changing the state - zlib_glz_state = comp; + s->zlib_glz_state = comp; return 0; } @@ -3911,3 +3911,8 @@ spice_wan_compression_t reds_get_jpeg_state(RedsState *reds) { return reds->jpeg_state; } + +spice_wan_compression_t reds_get_zlib_glz_state(RedsState *reds) +{ + return reds->zlib_glz_state; +} |