[Spice-commits] server/sound.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Dec 11 03:27:41 PST 2015


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

New commits:
commit e9bf0a69af221ae070dd7ee532642f2caab00498
Author: Marc-André Lureau <mlureau at redhat.com>
Date:   Thu Dec 10 01:04:22 2015 +0100

    snd: remove duplicated snd_attach_*() code
    
    red_channel_set_data() already sets channel->data.
    
    Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
    Acked-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/sound.c b/server/sound.c
index df413d9..a8cf0b6 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -1520,7 +1520,6 @@ void snd_attach_playback(SpicePlaybackInstance *sin)
     // TODO: Make RedChannel base of worker? instead of assigning it to channel->data
     channel = red_channel_create_dummy(sizeof(RedChannel), SPICE_CHANNEL_PLAYBACK, 0);
 
-    channel->data = playback_worker;
     client_cbs.connect = snd_set_playback_peer;
     client_cbs.disconnect = snd_disconnect_channel_client;
     client_cbs.migrate = snd_playback_migrate_channel_client;
@@ -1551,7 +1550,6 @@ void snd_attach_record(SpiceRecordInstance *sin)
     // TODO: Make RedChannel base of worker? instead of assigning it to channel->data
     channel = red_channel_create_dummy(sizeof(RedChannel), SPICE_CHANNEL_RECORD, 0);
 
-    channel->data = record_worker;
     client_cbs.connect = snd_set_record_peer;
     client_cbs.disconnect = snd_disconnect_channel_client;
     client_cbs.migrate = snd_record_migrate_channel_client;


More information about the Spice-commits mailing list