summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2016-08-24 11:37:57 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2016-08-24 11:37:57 -0500
commitfd6709245bf3d9ab31b75ea5d1219ba7504f449b (patch)
tree9fffff3f5771648344478551fe8b13cf40c3c0cc
parentece48ee8e6f35ee64d45cd9d6ca6a83b5394b99b (diff)
Use red_channel_client_get_stream()review-20160830
Don't touch the rcc struct directly. Improve encapsulation to help prepare for separating RedChannelClient to a separate file.
-rw-r--r--server/spicevmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/spicevmc.c b/server/spicevmc.c
index 4e9dd0d7..c79e7bbd 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -127,7 +127,7 @@ static RedVmcPipeItem* try_compress_lz4(SpiceVmcState *state, int n, RedVmcPipeI
RedVmcPipeItem *msg_item_compressed;
int compressed_data_count;
- if (reds_stream_get_family(state->rcc->stream) == AF_UNIX) {
+ if (reds_stream_get_family(red_channel_client_get_stream(state->rcc)) == AF_UNIX) {
/* AF_LOCAL - data will not be compressed */
return NULL;
}