[Spice-devel] [PATCH spice 3/9] snd: simplify reds_register_channel() call
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Dec 9 16:04:23 PST 2015
From: Marc-André Lureau <mlureau at redhat.com>
Give channel argument directly
Signed-off-by: Marc-André Lureau <marcandre.lureau at gmail.com>
---
server/sound.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/sound.c b/server/sound.c
index 5c252c1..a8cf0b6 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -1533,7 +1533,7 @@ void snd_attach_playback(SpicePlaybackInstance *sin)
playback_worker->base_channel = channel;
add_worker(playback_worker);
- reds_register_channel(playback_worker->base_channel);
+ reds_register_channel(channel);
}
void snd_attach_record(SpiceRecordInstance *sin)
@@ -1561,7 +1561,7 @@ void snd_attach_record(SpiceRecordInstance *sin)
record_worker->base_channel = channel;
add_worker(record_worker);
- reds_register_channel(record_worker->base_channel);
+ reds_register_channel(channel);
}
static void snd_detach_common(SndWorker *worker)
--
2.5.0
More information about the Spice-devel
mailing list