Re: [PATCH v10 01/11] sound: Convert SndChannelClient to GObject

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

 



On Tue, Jan 03, 2017 at 11:00:54AM +0000, Frediano Ziglio wrote:
> @@ -618,25 +401,26 @@ static int snd_send_volume(SndChannelClient *client, uint32_t cap, int msg)
>  {
>      SpiceMsgAudioVolume *vol;
>      uint8_t c;
> -    SpiceVolumeState *st = &client->channel->volume;
> -    SpiceMarshaller *m = client->send_data.marshaller;
> +    RedChannelClient *rcc = RED_CHANNEL_CLIENT(client);
> +    SpiceMarshaller *m = red_channel_client_get_marshaller(rcc);
> +    SndChannel *channel = SND_CHANNEL(red_channel_client_get_channel(rcc));
> +    SpiceVolumeState *st = &channel->volume;
>  
> -    if (!red_channel_client_test_remote_cap(client->channel_client, cap)) {
> -        return TRUE;
> +    if (!red_channel_client_test_remote_cap(rcc, cap)) {
> +        return FALSE;
>      }

Quickly mentioned on IRC that the returned value changed here, but you
told me this change. Mentioning this here in case someone wonders the
same thing ;)

> @@ -1509,52 +1316,79 @@ static void on_new_record_channel(SndChannel *channel, SndChannelClient *snd_cha
>  {
>      spice_assert(snd_channel);
>  
> -    channel->connection = snd_channel ;
> +    channel->connection = snd_channel;
>      if (channel->volume.volume_nchannels) {
> -        snd_set_command(snd_channel, SND_VOLUME_MASK);
> +        snd_set_command(snd_channel, SND_VOLUME_MUTE_MASK);

Is this mask change intentional?

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]