[Spice-devel] [PATCH spice-gtk 1/5] spice-channel: support SPICE_MSG_LIST

Marc-André Lureau marcandre.lureau at gmail.com
Tue Jan 10 04:07:21 PST 2012


ack (after reordering dependency check first)

On Sun, Jan 8, 2012 at 9:53 AM, Yonit Halperin <yhalperi at redhat.com> wrote:
> ---
>  gtk/spice-channel.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
> index 079028a..c4abd7b 100644
> --- a/gtk/spice-channel.c
> +++ b/gtk/spice-channel.c
> @@ -1632,7 +1632,7 @@ void spice_channel_recv_msg(SpiceChannel *channel,
>             return;
>     }
>
> -    if (in->header.sub_list) {
> +    if (in->header.type == SPICE_MSG_LIST || in->header.sub_list) {
>         SpiceSubMessageList *sub_list;
>         SpiceSubMessage *sub;
>         SpiceMsgIn *sub_in;
> @@ -1665,6 +1665,10 @@ void spice_channel_recv_msg(SpiceChannel *channel,
>         }
>     }
>
> +    if (in->header.type == SPICE_MSG_LIST) {
> +        goto end;
> +    }
> +
>     /* parse message */
>     in->parsed = c->parser(in->data, in->data + in->dpos, in->header.type,
>                            c->peer_hdr.minor_version, &in->psize, &in->pfree);
> --
> 1.7.6.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel



-- 
Marc-André Lureau


More information about the Spice-devel mailing list