mirror of
https://github.com/mpv-player/mpv
synced 2025-02-01 04:31:39 +00:00
Remove explicit eof check for mp_read code, stream code handles this case
better, e.g. properly supporting growing files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31325 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
159f5f451d
commit
1581d9deb2
@ -87,8 +87,6 @@ static int mp_read(void *opaque, uint8_t *buf, int size) {
|
||||
stream_t *stream = demuxer->stream;
|
||||
int ret;
|
||||
|
||||
if(stream_eof(stream)) //needed?
|
||||
return -1;
|
||||
ret=stream_read(stream, buf, size);
|
||||
|
||||
mp_msg(MSGT_HEADER,MSGL_DBG2,"%d=mp_read(%p, %p, %d), eof:%d\n", ret, stream, buf, size, stream->eof);
|
||||
|
Loading…
Reference in New Issue
Block a user