[MPlayer-cvslog] r23855 - trunk/libmpdemux/demux_ts.c

rtogni subversion at mplayerhq.hu
Tue Jul 24 23:04:08 CEST 2007


Author: rtogni
Date: Tue Jul 24 23:04:08 2007
New Revision: 23855

Log:
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


Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	(original)
+++ trunk/libmpdemux/demux_ts.c	Tue Jul 24 23:04:08 2007
@@ -698,7 +698,7 @@ static off_t ts_detect_streams(demuxer_t
 					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;



More information about the MPlayer-cvslog mailing list