1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

precaching

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3564 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2001-12-17 16:56:56 +00:00
parent 3db7b73bd9
commit 267916c82b
2 changed files with 3 additions and 2 deletions

View File

@ -353,7 +353,7 @@ divx4_param.rc_reaction_ratio = 20;
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);

View File

@ -821,7 +821,8 @@ if(stream_dump_type==5){
#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,"-"));