[Spice-devel] [spice] Enable mm_time adjustments on startup

Frediano Ziglio fziglio at redhat.com
Fri Apr 26 07:32:05 UTC 2019


> 
> We send mm_time adjustments to the client whenever there is no audio
> playback. There is no audio playback on startup. Therefore
> mm_time_enabled must be true on startup. QED.
> 

How did you demonstrated it ?

> Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
> ---
>  server/reds.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 28542bd09..647039119 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -3590,6 +3590,7 @@ static int do_spice_init(RedsState *reds,
> SpiceCoreInterface *core_interface)
>      reds->inputs_channel = inputs_channel_new(reds);
>  
>      reds->mouse_mode = SPICE_MOUSE_MODE_SERVER;
> +    reds->mm_time_enabled = TRUE;
> 

Why not calling reds_enable_mm_time ?
 
>      spice_buffer_free(&reds->client_monitors_config);
>  

Frediano


More information about the Spice-devel mailing list