[Spice-devel] [PATCH v2] display: Advertise preferred compression cap

Pavel Grunt pgrunt at redhat.com
Wed Sep 16 04:19:50 PDT 2015


Ack

On Wed, 2015-09-16 at 12:18 +0200, Christophe Fergeau wrote:
> The patches adding a way for the client to set its preferred compression
> method added a new capability so that the server can indicate support
> for this feature. However, spice-server was not setting this capability
> on its display channel, which means clients are not going to try to send
> 'preferred-compression' messages even though the user request it.
> ---
>  server/red_dispatcher.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/server/red_dispatcher.c b/server/red_dispatcher.c
> index 6d7756c..b11cd42 100644
> --- a/server/red_dispatcher.c
> +++ b/server/red_dispatcher.c
> @@ -1153,6 +1153,7 @@ void red_dispatcher_init(QXLInstance *qxl)
>          red_channel_register_client_cbs(display_channel, &client_cbs);
>          red_channel_set_data(display_channel, red_dispatcher);
>          red_channel_set_cap(display_channel,
> SPICE_DISPLAY_CAP_MONITORS_CONFIG);
> +        red_channel_set_cap(display_channel,
> SPICE_DISPLAY_CAP_PREF_COMPRESSION);
>          red_channel_set_cap(display_channel,
> SPICE_DISPLAY_CAP_STREAM_REPORT);
>          reds_register_channel(display_channel);
>      }


More information about the Spice-devel mailing list