[Spice-commits] server/sound.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 21 16:52:17 UTC 2018


 server/sound.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0083207b25c1ac7d4d6a50733f5e4a814959fc85
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Aug 25 11:24:40 2017 +0100

    sound: Do not pass unused pointer
    
    Client callbacks in sound channels do not use registered
    data so don't pass a valid pointer making clear from
    source that the parameter is not used.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/sound.c b/server/sound.c
index 4965cf5b..19b26294 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -1331,7 +1331,7 @@ playback_channel_constructed(GObject *object)
 
     client_cbs.connect = snd_set_playback_peer;
     client_cbs.migrate = snd_migrate_channel_client;
-    red_channel_register_client_cbs(RED_CHANNEL(self), &client_cbs, self);
+    red_channel_register_client_cbs(RED_CHANNEL(self), &client_cbs, NULL);
 
     if (snd_codec_is_capable(SPICE_AUDIO_DATA_MODE_CELT_0_5_1, SND_CODEC_ANY_FREQUENCY)) {
         red_channel_set_cap(RED_CHANNEL(self), SPICE_PLAYBACK_CAP_CELT_0_5_1);
@@ -1381,7 +1381,7 @@ record_channel_constructed(GObject *object)
 
     client_cbs.connect = snd_set_record_peer;
     client_cbs.migrate = snd_migrate_channel_client;
-    red_channel_register_client_cbs(RED_CHANNEL(self), &client_cbs, self);
+    red_channel_register_client_cbs(RED_CHANNEL(self), &client_cbs, NULL);
 
     if (snd_codec_is_capable(SPICE_AUDIO_DATA_MODE_CELT_0_5_1, SND_CODEC_ANY_FREQUENCY)) {
         red_channel_set_cap(RED_CHANNEL(self), SPICE_RECORD_CAP_CELT_0_5_1);


More information about the Spice-commits mailing list