[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.70,1.71
Arpi of Ize
arpi at mplayerhq.hu
Mon Jan 13 04:10:22 CET 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv1979
Modified Files:
network.c
Log Message:
better cache size defaults
Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- network.c 11 Jan 2003 14:02:23 -0000 1.70
+++ network.c 13 Jan 2003 03:10:19 -0000 1.71
@@ -722,7 +722,7 @@
stream->streaming_ctrl->streaming_read = nop_streaming_read;
stream->streaming_ctrl->streaming_seek = nop_streaming_seek;
- stream->streaming_ctrl->prebuffer_size = 8192; // KBytes
+ stream->streaming_ctrl->prebuffer_size = 64*1024; // 64 KBytes
stream->streaming_ctrl->buffering = 1;
stream->streaming_ctrl->status = streaming_playing_e;
return 0;
@@ -753,7 +753,7 @@
stream->streaming_ctrl->streaming_read = pnm_streaming_read;
// stream->streaming_ctrl->streaming_seek = nop_streaming_seek;
- stream->streaming_ctrl->prebuffer_size = 128; // KBytes
+ stream->streaming_ctrl->prebuffer_size = 8*1024; // 8 KBytes
stream->streaming_ctrl->buffering = 1;
stream->streaming_ctrl->status = streaming_playing_e;
return 0;
@@ -857,7 +857,7 @@
streaming_ctrl->streaming_read = rtp_streaming_read;
streaming_ctrl->streaming_seek = nop_streaming_seek;
- streaming_ctrl->prebuffer_size = 4096; // KBytes
+ streaming_ctrl->prebuffer_size = 64*1024; // 64 KBytes
streaming_ctrl->buffering = 0;
streaming_ctrl->status = streaming_playing_e;
return 0;
@@ -956,7 +956,7 @@
// cache option not set, will use our computed value.
// buffer in KBytes, *5 because the prefill is 20% of the buffer.
stream_cache_size = (stream->streaming_ctrl->prebuffer_size/1024)*5;
- if( stream_cache_size<16 ) stream_cache_size = 16; // 16KBytes min buffer
+ if( stream_cache_size<64 ) stream_cache_size = 64; // 16KBytes min buffer
}
mp_msg(MSGT_NETWORK,MSGL_INFO,"Cache size set to %d KBytes\n", stream_cache_size);
}
More information about the MPlayer-cvslog
mailing list