summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-09-09 16:57:05 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:16:45 +0200
commit01d8326435897b0725a37f67ae1c705cd420bbea (patch)
tree86072f44256062afd7ff86692793039402fd622a /stream
parent77fb7376e4c3f3f405711c1bacb96d8315f1d5e8 (diff)
downloadmpv-01d8326435897b0725a37f67ae1c705cd420bbea.tar.bz2
mpv-01d8326435897b0725a37f67ae1c705cd420bbea.tar.xz
cache: Remove unused cache_stats function
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32121 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 37d054990a..3aa24df64d 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -104,13 +104,6 @@ static void cache_wakeup(stream_t *s)
#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;
@@ -388,7 +381,6 @@ static void cache_mainloop(cache_vars_t *s) {
#endif
} else
sleep_count = 0;
-// cache_stats(s->cache_data);
} while (cache_execute_control(s));
}
@@ -500,8 +492,6 @@ int cache_stream_fill_buffer(stream_t *s){
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) {