[Spice-devel] [PATCH v6 03/18] sound: Reuse record_client variable

Frediano Ziglio fziglio at redhat.com
Fri Dec 2 10:53:50 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/sound.c b/server/sound.c
index 307d292..5e056b6 100644
--- a/server/sound.c
+++ b/server/sound.c
@@ -418,7 +418,7 @@ static int snd_record_handle_message(SndChannelClient *client, size_t size, uint
     }
     switch (type) {
     case SPICE_MSGC_RECORD_DATA:
-        return snd_record_handle_write((RecordChannelClient *)client, size, message);
+        return snd_record_handle_write(record_client, size, message);
     case SPICE_MSGC_RECORD_MODE: {
         SpiceMsgcRecordMode *mode = (SpiceMsgcRecordMode *)message;
         SndChannel *channel = client->channel;
-- 
git-series 0.9.1


More information about the Spice-devel mailing list