[Spice-devel] [PATCH 09/11] worker: fix some fields access
Frediano Ziglio
fziglio at redhat.com
Wed Nov 11 04:20:11 PST 2015
From: Marc-André Lureau <marcandre.lureau at gmail.com>
---
server/display-channel.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/server/display-channel.c b/server/display-channel.c
index 163f6b7..fbd8a0e 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -20,18 +20,18 @@
#include "display-channel.h"
-void display_channel_compress_stats_reset(DisplayChannel *display_channel)
+void display_channel_compress_stats_reset(DisplayChannel *display)
{
- spice_return_if_fail(display_channel);
+ spice_return_if_fail(display);
#ifdef COMPRESS_STAT
- stat_reset(&worker->display_channel->quic_stat);
- stat_reset(&worker->display_channel->lz_stat);
- stat_reset(&worker->display_channel->glz_stat);
- stat_reset(&worker->display_channel->jpeg_stat);
- stat_reset(&worker->display_channel->zlib_glz_stat);
- stat_reset(&worker->display_channel->jpeg_alpha_stat);
- stat_reset(&worker->display_channel->lz4_stat);
+ stat_reset(&display->quic_stat);
+ stat_reset(&display->lz_stat);
+ stat_reset(&display->glz_stat);
+ stat_reset(&display->jpeg_stat);
+ stat_reset(&display->zlib_glz_stat);
+ stat_reset(&display->jpeg_alpha_stat);
+ stat_reset(&display->lz4_stat);
#endif
}
--
2.4.3
More information about the Spice-devel
mailing list