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

Francois Cartegnie fcvlcdev at free.fr
Mon Jun 15 17:34:03 CEST 2020


Le 15/06/2020 à 17:31, Rémi Denis-Courmont a écrit :
> Le maanantaina 15. kesäkuuta 2020, 16.15.41 EEST Francois Cartegnie a écrit :
>> @@ -2543,16 +2566,11 @@ static void EsOutSelect( es_out_t *out, es_out_id_t
>> *es, bool b_force ) }
>>          /* If there is no user preference, select the default subtitle
>>           * or adapt by ES priority */
>> -        else if( p_esprops->i_demux_id >= 0 && es->fmt.i_id ==
>> p_esprops->i_demux_id ) +        else if( b_auto_selected &&
>> +                 EsOutSelectMatchPrioritized( p_esprops, es ) )
>>          {
>>              wanted_es = es;
>>          }
>> -        else if( p_esprops->p_main_es == NULL ||
>> -                 es->fmt.i_priority > p_esprops->p_main_es->fmt.i_priority
>> ) -        {
>> -            if( b_auto_selected )
>> -                wanted_es = es;
>> -        }

demux_id is the 'default' ES set by demuxer (can be achieved with
priority, but that's not the really the same usage) and we have to
consider non exclusive ES selection.

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list