[vlc-devel] [PATCH 2/2] input: Add a missing #ifdef ENABLE_SOUT

Steve Lhomme robux4 at ycbcr.xyz
Tue Nov 24 10:50:48 CET 2020


LGTM.

You might mention that's because sout_instance_ControlsPace() is not 
compiled when ENABLE_SOUT is not set.

On 2020-11-24 10:24, Hugo Beauzée-Luyssen wrote:
> ---
>   src/input/input.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/src/input/input.c b/src/input/input.c
> index 8f80406f3b..360e1fa9a9 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -1309,12 +1309,14 @@ static int Init( input_thread_t * p_input )
>           }
>       }
>   
> +#ifdef ENABLE_SOUT
>       if( !priv->b_preparsing && priv->p_sout )
>       {
>           priv->b_out_pace_control = !sout_instance_ControlsPace(priv->p_sout);
>           msg_Dbg( p_input, "starting in %ssync mode",
>                    priv->b_out_pace_control ? "a" : "" );
>       }
> +#endif
>   
>       if (!input_item_IsPreparsed(input_priv(p_input)->p_item))
>       {
> -- 
> 2.29.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