changeset 8939:aaca5f177b99

better cache size defaults
author arpi
date Mon, 13 Jan 2003 03:10:19 +0000
parents fc21a94f98c6
children dc963ad8dafe
files libmpdemux/network.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/network.c	Mon Jan 13 03:08:56 2003 +0000
+++ b/libmpdemux/network.c	Mon Jan 13 03:10:19 2003 +0000
@@ -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);
 	}