summaryrefslogtreecommitdiffstats
path: root/libmpdemux/cache2.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-22 02:33:28 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-22 02:33:28 +0000
commitd483a015a2bbca2aec8a287c0ff6eeb0f176a8bb (patch)
tree8f1d76f283da6022022a35e300c30faf93e71e83 /libmpdemux/cache2.c
parent61c5a99851ea41449a513619dd68791c93e30ef3 (diff)
downloadmpv-d483a015a2bbca2aec8a287c0ff6eeb0f176a8bb.tar.bz2
mpv-d483a015a2bbca2aec8a287c0ff6eeb0f176a8bb.tar.xz
tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/cache2.c')
-rw-r--r--libmpdemux/cache2.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libmpdemux/cache2.c b/libmpdemux/cache2.c
index d787b007fe..7d42281a13 100644
--- a/libmpdemux/cache2.c
+++ b/libmpdemux/cache2.c
@@ -50,13 +50,12 @@ typedef struct {
} cache_vars_t;
static int min_fill=0;
-static int sleep_flag=0;
int cache_fill_status=0;
void cache_stats(cache_vars_t* s){
int newb=s->max_filepos-s->read_filepos; // new bytes in the buffer
- printf("0x%06X [0x%06X] 0x%06X ",s->min_filepos,s->read_filepos,s->max_filepos);
+ printf("0x%06X [0x%06X] 0x%06X ",(int)s->min_filepos,(int)s->read_filepos,(int)s->max_filepos);
printf("%3d %% (%3d%%)\n",100*newb/s->buffer_size,100*min_fill/s->buffer_size);
}
@@ -107,7 +106,7 @@ int cache_read(cache_vars_t* s,unsigned char* buf,int size){
}
int cache_fill(cache_vars_t* s){
- int back,back2,newb,space,len,pos,endpos;
+ int back,back2,newb,space,len,pos;
off_t read=s->read_filepos;
if(read<s->min_filepos || read>s->max_filepos){