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

reimar subversion at mplayerhq.hu
Sat Aug 1 09:44:05 CEST 2015


Author: reimar
Date: Sat Aug  1 09:44:05 2015
New Revision: 37442

Log:
stream.c: Fix eof being set too early in some cases.

Modified:
   trunk/stream/stream.c

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Sat Aug  1 09:44:04 2015	(r37441)
+++ trunk/stream/stream.c	Sat Aug  1 09:44:05 2015	(r37442)
@@ -366,6 +366,9 @@ int stream_fill_buffer(stream_t *s){
       break;
     s->buf_len += len;
   }
+  // since the first read succeeded we are
+  // definitely not at EOF yet
+  s->eof = 0;
 //  printf("[%d]",len);fflush(stdout);
   if (s->capture_file)
     stream_capture_do(s);


More information about the MPlayer-cvslog mailing list