[vlc-devel] [PATCH 1/2] input: add a new variable storing which ES type was last modified

Rémi Denis-Courmont remi at remlab.net
Wed Jul 16 13:52:28 CEST 2014


Le 2014-07-16 14:06, Felix Abecassis a écrit :
> ---
>  src/input/event.c | 9 +++++++++
>  src/input/var.c   | 2 ++
>  2 files changed, 11 insertions(+)>
> diff --git a/src/input/event.c b/src/input/event.c
> index 453e04b..cb1b96f 100644
> --- a/src/input/event.c
> +++ b/src/input/event.c
> @@ -278,19 +278,28 @@ static const char *GetEsVarName( int i_cat )
>  void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int
> i_id, const char *psz_text )
>  {
>      if( i_cat != UNKNOWN_ES )
> +    {
> +        var_SetInteger( p_input, "es-type", i_cat );

If this is meant for event callbacks, the ID would be far more useful 
than the type.
If this is meant for querying, I think it will be intrinsically 
race-prone and not work properly.

-- 
Rémi Denis-Courmont



More information about the vlc-devel mailing list