[Mplayer-cvslog] CVS: main subreader.c,1.56,1.57
Arpi of Ize
arpi at mplayerhq.hu
Sun May 5 23:33:16 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv17628
Modified Files:
subreader.c
Log Message:
accept \N too, patch by Reinder <r.cuperus at student.utwente.nl>
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- subreader.c 25 Apr 2002 12:59:24 -0000 1.56
+++ subreader.c 5 May 2002 21:33:13 -0000 1.57
@@ -362,7 +362,7 @@
current->start = 360000*hour1 + 6000*min1 + 100*sec1 + hunsec1;
current->end = 360000*hour2 + 6000*min2 + 100*sec2 + hunsec2;
- while ((tmp=strstr(line2, "\\n")) != NULL) {
+ while (((tmp=strstr(line2, "\\n")) != NULL) || ((tmp=strstr(line2, "\\N")) != NULL) ){
current->text[num]=(char *)malloc(tmp-line2+1);
strncpy (current->text[num], line2, tmp-line2);
current->text[num][tmp-line2]='\0';
More information about the MPlayer-cvslog
mailing list