[Mplayer-cvslog] CVS: main subreader.c,1.21,1.22

Dariush Pietrzak eyck at mplayer.dev.hu
Wed Aug 22 23:38:37 CEST 2001


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

Modified Files:
	subreader.c 
Log Message:
Fixup to vplayer subtitle submitted to sourceforge by Igor Wojnicki
wojnicki at users.sf.net, at 2001-05-23 (sic!)


Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- subreader.c	13 Aug 2001 11:08:18 -0000	1.21
+++ subreader.c	22 Aug 2001 21:38:35 -0000	1.22
@@ -240,7 +240,13 @@
 		current->end   = b1*360000+b2*6000+b3*100;
 		if ((current->end - current->start) > 1000) {current->end = current->start + 1000;} // not too long though. 
 		// teraz czas na wkopiowanie stringu
-		p=line;	p+=plen;i=0;
+ 		p=line;	
+ 		// finds the body of the subtitle
+ 		for (i=0; i<3; i++){              
+                   p=strchr(p,':')+1;
+                 } 
+ 		i=0;
+
 		if (*p!='|') {
 			//
 			next = p,i=0;




More information about the MPlayer-cvslog mailing list