Mercurial > mplayer.hg
changeset 32037:7459e0a25235
Remove unused cache_stats function.
author | diego |
---|---|
date | Thu, 09 Sep 2010 16:57:05 +0000 |
parents | dbca781e632f |
children | 0fb2562cb130 |
files | stream/cache2.c |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/cache2.c Thu Sep 09 16:54:35 2010 +0000 +++ b/stream/cache2.c Thu Sep 09 16:57:05 2010 +0000 @@ -105,13 +105,6 @@ #endif } -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) { int total=0; @@ -390,7 +383,6 @@ #endif } else sleep_count = 0; -// cache_stats(s->cache_data); } while (cache_execute_control(s)); } @@ -502,8 +494,6 @@ int sector_size; if(!s->cache_pid) return stream_fill_buffer(s); -// cache_stats(s->cache_data); - if(s->pos!=((cache_vars_t*)s->cache_data)->read_filepos) mp_msg(MSGT_CACHE,MSGL_ERR,"!!! read_filepos differs!!! report this bug...\n"); sector_size = ((cache_vars_t*)s->cache_data)->sector_size; if (sector_size > STREAM_MAX_SECTOR_SIZE) {