Mercurial > mplayer.hg
changeset 4098:0eb21bf98baa
fixed mpsub bug requested by Gabucino
author | laaz |
---|---|
date | Sat, 12 Jan 2002 00:02:52 +0000 |
parents | 492df9b2b1cf |
children | 31bd636f50a1 |
files | subreader.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Fri Jan 11 22:33:44 2002 +0000 +++ b/subreader.c Sat Jan 12 00:02:52 2002 +0000 @@ -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;