Mercurial > mplayer.hg
changeset 32870:5321ce2ca6d9
100l, fix incorrect len when retrying read.
author | reimar |
---|---|
date | Wed, 23 Feb 2011 22:39:03 +0000 |
parents | 67ec52396b81 |
children | 4463dd690b0d |
files | stream/stream.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream.c Wed Feb 23 15:32:51 2011 +0000 +++ b/stream/stream.c Wed Feb 23 22:39:03 2011 +0000 @@ -283,6 +283,7 @@ int stream_read_internal(stream_t *s, void *buf, int len) { + int orig_len = len; // we will retry even if we already reached EOF previously. switch(s->type){ case STREAMTYPE_STREAM: @@ -312,7 +313,7 @@ stream_reset(s); stream_seek_internal(s, pos); s->eof=1; - return stream_read_internal(s, buf, len); + return stream_read_internal(s, buf, orig_len); } s->eof=1; return 0;