changeset 2327:2332ba356d03

print stats at read instead of fill
author arpi
date Sun, 21 Oct 2001 00:32:47 +0000
parents 7d3542955132
children 00f64d5858b8
files libmpdemux/cache2.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/cache2.c	Sun Oct 21 00:05:56 2001 +0000
+++ b/libmpdemux/cache2.c	Sun Oct 21 00:32:47 2001 +0000
@@ -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;