summaryrefslogtreecommitdiffstats
path: root/server/sound.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-30 16:53:54 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:46 +0100
commit9e43d42927b6ca587fee9ed9a789403d9b5abb31 (patch)
tree8f1245f474cc805c2d4ac8124c7516809d522625 /server/sound.c
parent5ab873730199fd05012b29de5a6fb993b51841c5 (diff)
downloadspice-9e43d42927b6ca587fee9ed9a789403d9b5abb31.tar.gz
spice-9e43d42927b6ca587fee9ed9a789403d9b5abb31.tar.xz
spice-9e43d42927b6ca587fee9ed9a789403d9b5abb31.zip
Store a reference to RedsState in Channel base class
Diffstat (limited to 'server/sound.c')
-rw-r--r--server/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sound.c b/server/sound.c
index ca1e0ff4..f44eb479 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -1515,7 +1515,7 @@ void snd_attach_playback(SpicePlaybackInstance *sin)
sin->st->frequency = SND_CODEC_CELT_PLAYBACK_FREQ; /* Default to the legacy rate */
// 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 = red_channel_create_dummy(sizeof(RedChannel), reds, SPICE_CHANNEL_PLAYBACK, 0);
channel->data = playback_worker;
client_cbs.connect = snd_set_playback_peer;
@@ -1546,7 +1546,7 @@ void snd_attach_record(SpiceRecordInstance *sin)
sin->st->frequency = SND_CODEC_CELT_PLAYBACK_FREQ; /* Default to the legacy rate */
// 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 = red_channel_create_dummy(sizeof(RedChannel), reds, SPICE_CHANNEL_RECORD, 0);
channel->data = record_worker;
client_cbs.connect = snd_set_record_peer;