comparison playtreeparser.c @ 4714:dfe709923a33

Fixed bug wich interrupt plaintext parsing before real eof
author albeu
date Fri, 15 Feb 2002 10:33:03 +0000
parents 7d24c9bd2ae5
children 4b728967bd77
comparison
equal deleted inserted replaced
4713:ad8b41562877 4714:dfe709923a33
158 if(!p->stream->eof) { 158 if(!p->stream->eof) {
159 r = stream_read(p->stream,p->buffer+p->buffer_end,p->buffer_size-p->buffer_end-1); 159 r = stream_read(p->stream,p->buffer+p->buffer_end,p->buffer_size-p->buffer_end-1);
160 if(r < 0) { 160 if(r < 0) {
161 mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't read from stream r=%d\n",r); 161 mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't read from stream r=%d\n",r);
162 return NULL; 162 return NULL;
163 } else if(r == 0) 163 }
164 eof = 1;
165 p->buffer_end += r; 164 p->buffer_end += r;
166 p->buffer[p->buffer_end] = '\0'; 165 p->buffer[p->buffer_end] = '\0';
167 } else eof = 1; 166 } else eof = 1;
168 r = 0; 167 r = 0;
169 while(1) { 168 while(1) {