aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-13 03:10:19 +0000
committerGravatar arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-13 03:10:19 +0000
commit13c130c58070b9023aa89b65938ab44db7cc6f8e (patch)
treefd2672acb1eabe015630878863ccaa2758c6f655 /libmpdemux
parenta1299f067ae71e6e7b96bccd14b414a371252f98 (diff)
better cache size defaults
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8940 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/network.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpdemux/network.c b/libmpdemux/network.c
index d0cd0b2c82..b5255cd2e2 100644
--- a/libmpdemux/network.c
+++ b/libmpdemux/network.c
@@ -722,7 +722,7 @@ nop_streaming_start( stream_t *stream ) {
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 @@ pnm_streaming_start( stream_t *stream ) {
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 @@ rtp_streaming_start( stream_t *stream ) {
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 @@ streaming_start(stream_t *stream, int *demuxer_type, URL_t *url) {
// 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);
}