changeset 23835:eb2cce132396

Fix for bugzilla #835 1) set audio language preferences (on command line or in ~/.mplayer/config). (say, alang = Japanese[jpn],ja,jp,jpn,English[eng],en,eng,ko,ru,rus) 2) play a transport stream whose audio streams are not labeled -> no audio Patch by Sergey Svishchev >>> svs - ropnet ru <<< on bugzilla Blessed by nicodvb
author rtogni
date Tue, 24 Jul 2007 21:04:08 +0000
parents bb61c85e8467
children 6b6f4d3fbd43
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Tue Jul 24 20:44:54 2007 +0000
+++ b/libmpdemux/demux_ts.c	Tue Jul 24 21:04:08 2007 +0000
@@ -698,7 +698,7 @@
 					if(! chosen_pid)
 						continue;
 				}
-				else if(param->alang[0] > 0)
+				else if(param->alang[0] > 0 && es.lang[0] > 0)
 				{
 					if(pid_match_lang(priv, es.pid, param->alang) == -1)
 						continue;