diff options
Diffstat (limited to 'stream/cache2.c')
-rw-r--r-- | stream/cache2.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/stream/cache2.c b/stream/cache2.c index e0f67dd9d4..7afcbf1b5b 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -88,13 +88,15 @@ static int min_fill=0; int cache_fill_status=0; -static void cache_stats(cache_vars_t* s){ +static void cache_stats(cache_vars_t *s) +{ int newb=s->max_filepos-s->read_filepos; // new bytes in the buffer mp_msg(MSGT_CACHE,MSGL_INFO,"0x%06X [0x%06X] 0x%06X ",(int)s->min_filepos,(int)s->read_filepos,(int)s->max_filepos); mp_msg(MSGT_CACHE,MSGL_INFO,"%3d %% (%3d%%)\n",100*newb/s->buffer_size,100*min_fill/s->buffer_size); } -static int cache_read(cache_vars_t* s,unsigned char* buf,int size){ +static int cache_read(cache_vars_t *s, unsigned char *buf, int size) +{ int total=0; while(size>0){ int pos,newb,len; @@ -140,7 +142,8 @@ static int cache_read(cache_vars_t* s,unsigned char* buf,int size){ return total; } -static int cache_fill(cache_vars_t* s){ +static int cache_fill(cache_vars_t *s) +{ int back,back2,newb,space,len,pos; off_t read=s->read_filepos; |