Mercurial > mplayer.hg
changeset 3563:3d73514ddefc
precaching
author | arpi |
---|---|
date | Mon, 17 Dec 2001 16:56:56 +0000 |
parents | e84d6c8ff59b |
children | e092aeeb966a |
files | mencoder.c mplayer.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mencoder.c Mon Dec 17 16:55:40 2001 +0000 +++ b/mencoder.c Mon Dec 17 16:56:56 2001 +0000 @@ -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);
--- a/mplayer.c Mon Dec 17 16:55:40 2001 +0000 +++ b/mplayer.c Mon Dec 17 16:56:56 2001 +0000 @@ -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,"-"));