[Mplayer-cvslog] CVS: main mplayer.c,1.342,1.343 mencoder.c,1.43,1.44

Arpi of Ize arpi at mplayer.dev.hu
Mon Dec 17 17:56:58 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv22992

Modified Files:
	mplayer.c mencoder.c 
Log Message:
precaching

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.342
retrieving revision 1.343
diff -u -r1.342 -r1.343
--- mplayer.c	17 Dec 2001 16:05:36 -0000	1.342
+++ mplayer.c	17 Dec 2001 16:56:56 -0000	1.343
@@ -821,7 +821,8 @@
 #endif
   current_module=NULL;
 
-  if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024);
+    // initial prefill: 20%  later: 5%  (should be set by -cacheopts)
+  if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024/5,stream_cache_size*1024/20);
 
   use_stdin=filename && (!strcmp(filename,"-"));
 

Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- mencoder.c	16 Dec 2001 11:37:23 -0000	1.43
+++ mencoder.c	17 Dec 2001 16:56:56 -0000	1.44
@@ -353,7 +353,7 @@
 
   printf("success: format: %d  data: 0x%X - 0x%X\n",file_format, (int)(stream->start_pos),(int)(stream->end_pos));
 
-  if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024);
+  if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0);
 
   //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
   demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);




More information about the MPlayer-cvslog mailing list