Use red_channel_client_get_stream()

Don't touch the rcc struct directly. Improve encapsulation to help
prepare for separating RedChannelClient to a separate file.
This commit is contained in:
Jonathon Jongsma 2016-08-24 11:37:57 -05:00
parent 66c5700602
commit d529bfd4f0

View File

@ -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;
}