[vlc-devel] [PATCH 1/3] input: es_out: split es selection matching functions

Francois Cartegnie fcvlcdev at free.fr
Tue Jun 16 10:51:38 CEST 2020


Le 16/06/2020 à 10:48, Francois Cartegnie a écrit :

> +    /* If demux has specified a default track */
> +    if( p_esprops->i_demux_id >= 0 )
> +    {
> +        if( es->fmt.i_id == p_esprops->i_demux_id )
> +            return true;
> +    }
> +    /* Otherwise, fallback by priority */
> +    else if( p_esprops->p_main_es == NULL )
> +    {


Too fast on trivial change. Obviously:

else if( p_esprops->p_main_es != NULL )

> +        if( es->fmt.i_priority > p_esprops->p_main_es->fmt.i_priority )
> +            return true;
> +    }
> +

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list