[Spice-devel] [PATCH] display: Advertise preferrred compression cap

Christophe Fergeau cfergeau at redhat.com
Wed Sep 16 01:49:48 PDT 2015


On Wed, Sep 16, 2015 at 07:19:51AM +0200, Pavel Grunt wrote:
> Hi Christophe,
> 
> On Tue, 2015-09-15 at 18:08 +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_worker.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/server/red_worker.c b/server/red_worker.c
> > index e2feb23..0b22f0d 100644
> > --- a/server/red_worker.c
> > +++ b/server/red_worker.c
> > @@ -10520,6 +10520,7 @@ static RedChannel *__new_channel(RedWorker *worker,
> > int size, uint32_t channel_t
> >                                          handle_parsed,
> >                                          &channel_cbs,
> >                                          migration_flags);
> > +    red_channel_set_cap(channel, SPICE_DISPLAY_CAP_PREF_COMPRESSION);
> 
> Why is it not set in server/red_dispatcher.c, with other display channel caps ?

Ah I did not notice these ones, I'll send a v2 (these look out of place
in red_dispatcher.c, but that's a different matter :p )

Thanks,

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/20150916/8a50cb6d/attachment.sig>


More information about the Spice-devel mailing list