diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-06 13:35:19 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:12 +0300 |
commit | 26027036c05cac96e2648ee146d63ba83af2d35e (patch) | |
tree | b3773c51bfebf9661d9c6d3604565b9ef5ff7904 /server/snd_worker.c | |
parent | 934fb14ccc731689369c55ead8125a590c0c4343 (diff) | |
download | spice-26027036c05cac96e2648ee146d63ba83af2d35e.tar.gz spice-26027036c05cac96e2648ee146d63ba83af2d35e.tar.xz spice-26027036c05cac96e2648ee146d63ba83af2d35e.zip |
red_channel: remove unused migrate flag from RedChannel
The relevant flags reside in RedChannelClient and RedClient
Diffstat (limited to 'server/snd_worker.c')
-rw-r--r-- | server/snd_worker.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/server/snd_worker.c b/server/snd_worker.c index 7c47242b..995823c4 100644 --- a/server/snd_worker.c +++ b/server/snd_worker.c @@ -97,7 +97,6 @@ struct SndChannel { int blocked; uint32_t command; - int migrate; uint32_t ack_generation; uint32_t client_ack_generation; uint32_t out_messages; @@ -923,7 +922,6 @@ static SndChannel *__new_channel(SndWorker *worker, int size, uint32_t channel_i goto error2; } - channel->migrate = migrate; channel->send_messages = send_messages; channel->handle_message = handle_message; channel->on_message_done = on_message_done; @@ -1101,7 +1099,7 @@ static void on_new_playback_channel(SndWorker *worker) spice_assert(playback_channel); snd_set_command((SndChannel *)playback_channel, SND_PLAYBACK_MODE_MASK); - if (!playback_channel->base.migrate && playback_channel->base.active) { + if (playback_channel->base.active) { snd_set_command((SndChannel *)playback_channel, SND_PLAYBACK_CTRL_MASK); } snd_set_command((SndChannel *)playback_channel, SND_PLAYBACK_VOLUME_MASK); @@ -1318,10 +1316,8 @@ static void on_new_record_channel(SndWorker *worker) spice_assert(record_channel); snd_set_command((SndChannel *)record_channel, SND_RECORD_VOLUME_MASK); - if (!record_channel->base.migrate) { - if (record_channel->base.active) { - snd_set_command((SndChannel *)record_channel, SND_RECORD_CTRL_MASK); - } + if (record_channel->base.active) { + snd_set_command((SndChannel *)record_channel, SND_RECORD_CTRL_MASK); } } |