]> git.sesse.net Git - vlc/commitdiff
TS: prioritize normal audio tracks over special ones
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Sep 2010 04:09:19 +0000 (07:09 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 17 Sep 2010 04:10:45 +0000 (07:10 +0300)
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.

modules/demux/ts.c

index 86c94781193e4bbba6deb49439724cf76de5100a..6dccaa11adeb1c70049c4d5821ad73ec3960873b 100644 (file)
@@ -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: