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

Submitted by Frediano Ziglio on Dec. 2, 2016, 10:53 a.m.

Details

Message ID a663f1daa92fc14f8781bfff44f7ab11fbdb64a1.1480676032.git-series.fziglio@redhat.com
State Accepted
Commit f301d3efc1bb6be94555b2b2878a8a1acae3d071
Headers show
Series "Remove DummyChannel* objects" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio Dec. 2, 2016, 10:53 a.m.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
---
 server/sound.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;

Comments

Acked-by: Jonathon Jongsma <jjongsma@redhat.com>


On Fri, 2016-12-02 at 10:53 +0000, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@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;