[vlc-commits] commit: TS: prioritize normal audio tracks over special ones ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Sep 17 06:12:45 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 17 07:09:19 2010 +0300| [dea4f0a1b9ca2132ac32b2b31b0b6063a03c8bc0] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dea4f0a1b9ca2132ac32b2b31b0b6063a03c8bc0
---

 modules/demux/ts.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 86c9478..6dccaa1 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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:



More information about the vlc-commits mailing list