[Spice-devel] [PATCH spice-server 4/6] video-stream: Simplify update_client_playback_delay

Frediano Ziglio fziglio at redhat.com
Fri Dec 8 15:55:22 UTC 2017


Avoid one step to retrieve reds pointer.

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

diff --git a/server/video-stream.c b/server/video-stream.c
index b236774a..a4b83b4f 100644
--- a/server/video-stream.c
+++ b/server/video-stream.c
@@ -661,9 +661,8 @@ static void update_client_playback_delay(void *opaque, uint32_t delay_ms)
 {
     VideoStreamAgent *agent = opaque;
     DisplayChannelClient *dcc = agent->dcc;
-    RedChannel *channel = red_channel_client_get_channel(RED_CHANNEL_CLIENT(dcc));
     RedClient *client = red_channel_client_get_client(RED_CHANNEL_CLIENT(dcc));
-    RedsState *reds = red_channel_get_server(channel);
+    RedsState *reds = red_client_get_server(client);
 
     dcc_update_streams_max_latency(dcc, agent);
 
-- 
2.14.3



More information about the Spice-devel mailing list