[Mplayer-cvslog] CVS: main/libmpdemux cache2.c,1.2,1.3

Arpi of Ize arpi at mplayer.dev.hu
Sun Oct 21 02:33:32 CEST 2001


Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv23958

Modified Files:
	cache2.c 
Log Message:
print stats at read instead of fill

Index: cache2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cache2.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cache2.c	20 Oct 2001 23:57:55 -0000	1.2
+++ cache2.c	21 Oct 2001 00:32:47 -0000	1.3
@@ -175,7 +175,7 @@
     if(!cache_fill(s->cache_data)){
 	 usleep(50000); // idle
     }
-	 cache_stats(s->cache_data);
+//	 cache_stats(s->cache_data);
   }
 }
 
@@ -184,8 +184,10 @@
   if(s->eof){ s->buf_pos=s->buf_len=0; return 0; }
   if(!s->cache_pid) return stream_fill_buffer(s);
 
+  cache_stats(s->cache_data);
+
   len=cache_read(s->cache_data,s->buffer, ((cache_vars_t*)s->cache_data)->sector_size);
-  
+
   if(len<=0){ s->eof=1; s->buf_pos=s->buf_len=0; return 0; }
   s->buf_pos=0;
   s->buf_len=len;




More information about the MPlayer-cvslog mailing list