[Spice-devel] [spice-server 14/17] sound: Remove code from spice_server_record_get_samples()
Christophe Fergeau
cfergeau at redhat.com
Wed Jan 11 08:48:28 UTC 2017
It's ok to remove it because ?
Based on a patch from Frediano Ziglio <fziglio at redhat.com>
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
Not sure what to say in this commit log either.
server/sound.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/server/sound.c b/server/sound.c
index 1a5f70c..434350a 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -1469,15 +1469,6 @@ SPICE_GNUC_VISIBLE uint32_t spice_server_record_get_samples(SpiceRecordInstance
len = MIN(record_client->write_pos - record_client->read_pos, bufsize);
- if (len < bufsize) {
- SndChannel *channel = SND_CHANNEL(red_channel_client_get_channel(client->channel_client));
- snd_receive(client);
- if (!channel->connection) {
- return 0;
- }
- len = MIN(record_client->write_pos - record_client->read_pos, bufsize);
- }
-
read_pos = record_client->read_pos % RECORD_SAMPLES_SIZE;
record_client->read_pos += len;
now = MIN(len, RECORD_SAMPLES_SIZE - read_pos);
--
2.9.3
More information about the Spice-devel
mailing list