[vlc-devel] [PATCH 2/2] input: use es_out_id_t * for controls

Steve Lhomme robux4 at ycbcr.xyz
Wed Jun 19 07:14:48 CEST 2019


LGTM

On 2019-06-18 18:53, Thomas Guillem wrote:
> It worked since vlc_es_id_t was the first member of the es_out_id_t struct.
> ---
>   src/input/input.c | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/src/input/input.c b/src/input/input.c
> index ea667d4941..0e7b8e9699 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -2017,17 +2017,18 @@ static bool Control( input_thread_t *p_input,
>   
>           case INPUT_CONTROL_SET_ES:
>               if( es_out_Control( input_priv(p_input)->p_es_out_display,
> -                                ES_OUT_SET_ES, param.id ) == VLC_SUCCESS )
> +                                ES_OUT_SET_ES, vlc_es_id_get_out( param.id ) )
> +                                == VLC_SUCCESS )
>                   demux_Control( input_priv(p_input)->master->p_demux, DEMUX_SET_ES,
>                                  vlc_es_id_GetInputId( param.id ) );
>               break;
>           case INPUT_CONTROL_UNSET_ES:
>               es_out_Control( input_priv(p_input)->p_es_out_display,
> -                            ES_OUT_UNSET_ES, param.id );
> +                            ES_OUT_UNSET_ES, vlc_es_id_get_out(param.id) );
>               break;
>           case INPUT_CONTROL_RESTART_ES:
>               es_out_Control( input_priv(p_input)->p_es_out_display,
> -                            ES_OUT_RESTART_ES, param.id );
> +                            ES_OUT_RESTART_ES, vlc_es_id_get_out( param.id ) );
>               break;
>   
>           case INPUT_CONTROL_SET_VIEWPOINT:
> -- 
> 2.20.1
> 
> _______________________________________________
> 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