[PATCH spice-gtk RFC] Call spice_marshaller_flush on message write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



spice_marshaller_flush must be called before writing a message to
calculate pointer offsets.
---
 src/spice-channel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/spice-channel.c b/src/spice-channel.c
index c67e0aa..19db676 100644
--- a/src/spice-channel.c
+++ b/src/spice-channel.c
@@ -854,6 +854,7 @@ static void spice_channel_write_msg(SpiceChannel *channel, SpiceMsgOut *out)
         return;
     }
 
+    spice_marshaller_flush(out->marshaller);
     msg_size = spice_marshaller_get_total_size(out->marshaller) -
                spice_header_get_header_size(channel->priv->use_mini_header);
     spice_header_set_msg_size(out->header, channel->priv->use_mini_header, msg_size);
-- 
2.4.3

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]