Avoid one step to retrieve reds pointer. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- 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 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel