[Spice-devel] [PATCH spice-gtk v4 3/3] Display: Send a preferred compression message on init.

Christophe Fergeau cfergeau at redhat.com
Thu Jun 4 01:57:58 PDT 2015


On Wed, Jun 03, 2015 at 05:07:52PM +0200, Javier Celaya wrote:
> If the user prefers a specific compression algorithm, report it when
> setting up the display channel.
> ---
>  gtk/channel-display.c | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/gtk/channel-display.c b/gtk/channel-display.c
> index efe2259..5dd3f71 100644
> --- a/gtk/channel-display.c
> +++ b/gtk/channel-display.c
> @@ -789,12 +789,15 @@ static void spice_display_channel_up(SpiceChannel *channel)
>      SpiceMsgOut *out;
>      SpiceSession *s = spice_channel_get_session(channel);
>      SpiceMsgcDisplayInit init;
> +    SpiceMsgcDisplayPreferredCompression pref_comp_msg;
>      int cache_size;
>      int glz_window_size;
> +    SpiceImageCompress preferred_compression = SPICE_IMAGE_COMPRESS_INVALID;

I'd use 'int' instead of SpiceImageCompress here as I think
g_object_get() expects a pointer to an int when getting the value of a
GEnum (I can fix this up before pushing)

Apart from this, ACK.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150604/55a21af1/attachment.sig>


More information about the Spice-devel mailing list