[Spice-devel] [PATCH spice-server v2 09/12] red-worker: Remove only assigned fields
Frediano Ziglio
fziglio at redhat.com
Tue Mar 26 19:10:35 UTC 2019
DisplayChannelClient get them directly from reds (they are changed
only during initialisation so they can be read freely from any
thread).
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-worker.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/server/red-worker.c b/server/red-worker.c
index 129f9f93..d883f419 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -77,8 +77,6 @@ struct RedWorker {
RedMemSlotInfo mem_slots;
SpiceImageCompression image_compression;
- spice_wan_compression_t jpeg_state;
- spice_wan_compression_t zlib_glz_state;
uint32_t process_display_generation;
RedStatNode stat;
@@ -1109,8 +1107,6 @@ RedWorker* red_worker_new(QXLInstance *qxl)
}
worker->image_compression = spice_server_get_image_compression(reds);
- worker->jpeg_state = reds_get_jpeg_state(reds);
- worker->zlib_glz_state = reds_get_zlib_glz_state(reds);
worker->driver_cap_monitors_config = 0;
char worker_str[SPICE_STAT_NODE_NAME_MAX];
snprintf(worker_str, sizeof(worker_str), "display[%d]", worker->qxl->id & 0xff);
--
2.20.1
More information about the Spice-devel
mailing list