[Mplayer-cvslog] CVS: main subreader.c,1.122,1.123

Adam Tla/lka CVS atlka at mplayerhq.hu
Mon Sep 22 15:45:02 CEST 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv1051

Modified Files:
	subreader.c 
Log Message:
corrected utf8 files autoselection


Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- subreader.c	21 Sep 2003 13:20:00 -0000	1.122
+++ subreader.c	22 Sep 2003 13:44:36 -0000	1.123
@@ -1762,8 +1762,9 @@
 		    if (prio) {
 			prio += prio;
 #ifdef USE_ICONV
-			if (sub_cp) // prefer UTF-8 coded
+			if (sub_utf8 || (i<3)){ // prefer UTF-8 coded
 			    prio++;
+			}
 #endif
 			sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
 //			fprintf(stderr, "%s priority %d\n", tmpresult, prio);



More information about the MPlayer-cvslog mailing list