[MPlayer-cvslog] r30798 - trunk/subreader.c

reimar subversion at mplayerhq.hu
Sun Feb 28 15:27:45 CET 2010


Author: reimar
Date: Sun Feb 28 15:27:44 2010
New Revision: 30798

Log:
sub_utf8 is handled as a value, not flags everywhere else, so change
sub_utf8 & 2 to == 2.

Modified:
   trunk/subreader.c

Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	Sun Feb 28 15:22:44 2010	(r30797)
+++ trunk/subreader.c	Sun Feb 28 15:27:44 2010	(r30798)
@@ -1433,7 +1433,7 @@ sub_data* sub_read_file (char *filename,
         sub=srp->read(fd,sub);
         if(!sub) break;   // EOF
 #ifdef CONFIG_ICONV
-	if ((sub!=ERR) && (sub_utf8 & 2)) sub=subcp_recode(sub);
+	if ((sub!=ERR) && sub_utf8 == 2) sub=subcp_recode(sub);
 #endif
 #ifdef CONFIG_FRIBIDI
 	if (sub!=ERR) sub=sub_fribidi(sub,sub_utf8,0);


More information about the MPlayer-cvslog mailing list