mirror of
https://github.com/mpv-player/mpv
synced 2025-03-07 22:57:42 +00:00
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:
parent
4cd0f2201a
commit
37d1cfa8c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user