changeset 31259:dc3954ca63ca

Remove explicit eof check for mp_read code, stream code handles this case better, e.g. properly supporting growing files.
author reimar
date Sat, 05 Jun 2010 16:12:36 +0000
parents a755bac0b6f4
children 9a748502953b
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sat Jun 05 16:00:49 2010 +0000
+++ b/libmpdemux/demux_lavf.c	Sat Jun 05 16:12:36 2010 +0000
@@ -87,8 +87,6 @@
     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);