[Mplayer-cvslog] CVS: main mplayer.c,1.227,1.228

Adam Tla/lka atlka at mplayer.dev.hu
Tue Aug 21 14:09:46 CEST 2001


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

Modified Files:
	mplayer.c 
Log Message:

if option  -sub filename.utf  then switch sub_utf8 on


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -r1.227 -r1.228
--- mplayer.c	20 Aug 2001 21:20:03 -0000	1.227
+++ mplayer.c	21 Aug 2001 12:09:39 -0000	1.228
@@ -589,6 +589,10 @@
 #ifdef USE_SUB
 // check .sub
   if(sub_name){
+       int l=strlen(sub_name);
+       if ((l>4) && ((0==strcmp(&sub_name[l-4],".utf"))
+		   ||(0==strcmp(&sub_name[l-4],".UTF"))))
+	  sub_utf8=1;
        subtitles=sub_read_file(sub_name);
        if(!subtitles) mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_CantLoadSub,sub_name);
   } else {




More information about the MPlayer-cvslog mailing list