Fixed bug wich interrupt plaintext parsing before real eof

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4715 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-02-15 10:33:03 +00:00
parent 4cd0f2201a
commit 37d1cfa8c0
1 changed files with 1 additions and 2 deletions

View File

@ -160,8 +160,7 @@ parse_textplain(play_tree_parser_t* p) {
if(r < 0) {
mp_msg(MSGT_PLAYTREE,MSGL_ERR,"Can't read from stream r=%d\n",r);
return NULL;
} else if(r == 0)
eof = 1;
}
p->buffer_end += r;
p->buffer[p->buffer_end] = '\0';
} else eof = 1;