[Spice-devel] [PATCH v10 01/11] sound: Convert SndChannelClient to GObject
Christophe Fergeau
cfergeau at redhat.com
Thu Jan 5 16:22:52 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170105/5f5c240e/attachment-0001.sig>
More information about the Spice-devel
mailing list