Commit dea4f0a1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

TS: prioritize normal audio tracks over special ones

Otherwise, VLC sometimes selects the impaired track instead of the
usual/default one. This is a major annoyance with YLE, the Finnish
national broadcaster. YLE routinely provides a visual impaired audio
track in Finnish (declared as Dutch for some reason!) in addition to
the original version.
parent 1c1a4e41
......@@ -3842,6 +3842,7 @@ static void PMTParseEsIso639( demux_t *p_demux, ts_pid_t *pid,
switch( p_decoded->code[0].i_audio_type )
{
case 0:
pid->es->fmt.i_priority = 1; // prioritize normal audio tracks
pid->es->fmt.psz_description = NULL;
break;
case 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment