Mercurial > mplayer.hg
comparison mplayer.c @ 16152:10a69a812eff
remove unused cache-prefill and create cache-seek-min that controls when seek_long is prefered over waiting for cache to fill
author | iive |
---|---|
date | Sun, 31 Jul 2005 00:26:07 +0000 |
parents | 96d10b705bc6 |
children | 6b86089c2edd |
comparison
equal
deleted
inserted
replaced
16151:3f00da96c768 | 16152:10a69a812eff |
---|---|
264 int stream_cache_size=-1; | 264 int stream_cache_size=-1; |
265 #ifdef USE_STREAM_CACHE | 265 #ifdef USE_STREAM_CACHE |
266 extern int cache_fill_status; | 266 extern int cache_fill_status; |
267 | 267 |
268 float stream_cache_min_percent=20.0; | 268 float stream_cache_min_percent=20.0; |
269 float stream_cache_prefill_percent=5.0; | 269 float stream_cache_seek_min_percent=50.0; |
270 #else | 270 #else |
271 #define cache_fill_status 0 | 271 #define cache_fill_status 0 |
272 #endif | 272 #endif |
273 | 273 |
274 // dump: | 274 // dump: |
1638 #ifdef HAS_DVBIN_SUPPORT | 1638 #ifdef HAS_DVBIN_SUPPORT |
1639 goto_enable_cache: | 1639 goto_enable_cache: |
1640 #endif | 1640 #endif |
1641 if(stream_cache_size>0){ | 1641 if(stream_cache_size>0){ |
1642 current_module="enable_cache"; | 1642 current_module="enable_cache"; |
1643 if(!stream_enable_cache(stream,stream_cache_size*1024,stream_cache_size*1024*(stream_cache_min_percent / 100.0),stream_cache_size*1024*(stream_cache_prefill_percent / 100.0))) | 1643 if(!stream_enable_cache(stream,stream_cache_size*1024, |
1644 stream_cache_size*1024*(stream_cache_min_percent / 100.0), | |
1645 stream_cache_size*1024*(stream_cache_seek_min_percent / 100.0))) | |
1644 if((eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) goto goto_next_file; | 1646 if((eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) goto goto_next_file; |
1645 } | 1647 } |
1646 | 1648 |
1647 //============ Open DEMUXERS --- DETECT file type ======================= | 1649 //============ Open DEMUXERS --- DETECT file type ======================= |
1648 current_module="demux_open"; | 1650 current_module="demux_open"; |