[Spice-devel] [PATCH spice-gtk] usbredir: remove misleading compressed_data field

marcandre.lureau at redhat.com marcandre.lureau at redhat.com
Thu Jul 28 08:41:51 UTC 2016


From: Marc-André Lureau <marcandre.lureau at redhat.com>

It is not actually used by msg_SpiceMsgCompressedData since it must be
appended manually.

Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
---
 src/channel-usbredir.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/channel-usbredir.c b/src/channel-usbredir.c
index 0e7a0b0..cacdc55 100644
--- a/src/channel-usbredir.c
+++ b/src/channel-usbredir.c
@@ -685,7 +685,6 @@ static int try_write_compress_LZ4(SpiceUsbredirChannel *channel, uint8_t *data,
                                                  count,
                                                  bound);
     if (compressed_data_count > 0 && compressed_data_count < count) {
-        compressed_data_msg.compressed_data = compressed_buf;
         msg_out_compressed = spice_msg_out_new(SPICE_CHANNEL(channel),
                                                SPICE_MSGC_SPICEVMC_COMPRESSED_DATA);
         msg_out_compressed->marshallers->msg_SpiceMsgCompressedData(msg_out_compressed->marshaller,
-- 
2.9.0



More information about the Spice-devel mailing list