[MPlayer-cvslog] r32957 - trunk/stream/stream.c

reimar subversion at mplayerhq.hu
Wed Feb 23 23:39:04 CET 2011


Author: reimar
Date: Wed Feb 23 23:39:03 2011
New Revision: 32957

Log:
100l, fix incorrect len when retrying read.

Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Wed Feb 23 16:32:51 2011	(r32956)
+++ trunk/stream/stream.c	Wed Feb 23 23:39:03 2011	(r32957)
@@ -283,6 +283,7 @@ void stream_capture_do(stream_t *s)
 
 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 @@ int stream_read_internal(stream_t *s, vo
       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;


More information about the MPlayer-cvslog mailing list