mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-17 22:14:08 +00:00
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:
parent
66c5700602
commit
d529bfd4f0
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user