[vlc-devel] [PATCH 1/2] es_out: only set the sout pace if it changed

Thomas Guillem thomas at gllm.fr
Fri Aug 14 10:09:31 CEST 2020


Set LGTM

On Thu, Aug 13, 2020, at 14:10, Steve Lhomme wrote:
> We already test if it's different so make use of it.
> ---
>  src/input/es_out.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/src/input/es_out.c b/src/input/es_out.c
> index 89d819b4c5b..ef6b1c9b869 100644
> --- a/src/input/es_out.c
> +++ b/src/input/es_out.c
> @@ -2782,9 +2782,10 @@ static int EsOutSend( es_out_t *out, es_out_id_t 
> *es, block_t *p_block )
>          bool pace = 
> sout_instance_ControlsPace(input_priv(p_input)->p_sout);
>  
>          if( input_priv(p_input)->b_out_pace_control != pace )
> +        {
>              msg_Dbg( p_input, "switching to %ssync mode", pace ? "a" : "" );
> -
> -        input_priv(p_input)->b_out_pace_control = pace;
> +            input_priv(p_input)->b_out_pace_control = pace;
> +        }
>      }
>  #endif
>  
> -- 
> 2.26.2
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list