[Mplayer-cvslog] CVS: main subreader.c,1.49,1.50
Megyer Laszlo
laaz at mplayer.dev.hu
Sat Jan 12 01:02:55 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv1546
Modified Files:
subreader.c
Log Message:
fixed mpsub bug requested by Gabucino
Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- subreader.c 9 Jan 2002 16:35:24 -0000 1.49
+++ subreader.c 12 Jan 2002 00:02:52 -0000 1.50
@@ -404,7 +404,10 @@
current->end=(int) mpsub_position;
while (num < SUB_MAX_TEXT) {
- if (!fgets (line, LINE_LEN, fd)) return NULL;
+ if (!fgets (line, LINE_LEN, fd)) {
+ if (num == 0) return NULL;
+ else return current;
+ }
p=line;
while (isspace(*p)) p++;
if (eol(*p) && num > 0) return current;
@@ -414,7 +417,7 @@
*q='\0';
if (strlen(p)) {
current->text[num]=strdup(p);
- printf (">%s<\n",p);
+// printf (">%s<\n",p);
current->lines = ++num;
} else {
if (num) return current;
More information about the MPlayer-cvslog
mailing list