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

Jonathon Jongsma jjongsma at redhat.com
Tue Dec 12 16:47:42 UTC 2017


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



On Fri, 2017-12-08 at 15:55 +0000, Frediano Ziglio wrote:
> 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);
>  


More information about the Spice-devel mailing list