[Mplayer-cvslog] CVS: main/libmpdemux cache2.c,1.12,1.13

Arpi of Ize arpi at mplayerhq.hu
Sun May 5 23:43:19 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv24166

Modified Files:
	cache2.c 
Log Message:
cache lower limit 32kb

Index: cache2.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/cache2.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- cache2.c	2 May 2002 10:28:33 -0000	1.12
+++ cache2.c	5 May 2002 21:43:16 -0000	1.13
@@ -198,7 +198,9 @@
 
 int stream_enable_cache(stream_t *stream,int size,int min,int prefill){
   int ss=(stream->type==STREAMTYPE_VCD)?VCD_SECTOR_DATA:STREAM_BUFFER_SIZE;
-  cache_vars_t* s=cache_init(size,ss);
+  cache_vars_t* s;
+  if(size<32*1024) size=32*1024; // 32kb min
+  s=cache_init(size,ss);
   stream->cache_data=s;
   s->stream=stream; // callback
   s->prefill=size*prefill;




More information about the MPlayer-cvslog mailing list