changeset 1640:cbedcfab877b

Fixup to vplayer subtitle submitted to sourceforge by Igor Wojnicki wojnicki at users.sf.net, at 2001-05-23 (sic!)
author eyck
date Wed, 22 Aug 2001 21:38:35 +0000
parents 9423cb98e63f
children b7dae998505c
files subreader.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Wed Aug 22 21:35:44 2001 +0000
+++ b/subreader.c	Wed Aug 22 21:38:35 2001 +0000
@@ -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;