comparison mplayer.c @ 34704:cc658103f214

Allow using a cache size of up to 4 TB. Obviously anything close to 4 GB will always fail on 32 bit systems.
author reimar
date Sun, 04 Mar 2012 14:47:37 +0000
parents 084c21922624
children 8c1a27b26502
comparison
equal deleted inserted replaced
34703:4ccdcd1ff6ba 34704:cc658103f214
3296 // CACHE2: initial prefill: 20% later: 5% (should be set by -cacheopts) 3296 // CACHE2: initial prefill: 20% later: 5% (should be set by -cacheopts)
3297 goto_enable_cache: 3297 goto_enable_cache:
3298 if (stream_cache_size > 0) { 3298 if (stream_cache_size > 0) {
3299 int res; 3299 int res;
3300 current_module = "enable_cache"; 3300 current_module = "enable_cache";
3301 res = stream_enable_cache(mpctx->stream, stream_cache_size * 1024, 3301 res = stream_enable_cache(mpctx->stream, stream_cache_size * 1024ull,
3302 stream_cache_size * 1024 * (stream_cache_min_percent / 100.0), 3302 stream_cache_size * 1024ull * (stream_cache_min_percent / 100.0),
3303 stream_cache_size * 1024 * (stream_cache_seek_min_percent / 100.0)); 3303 stream_cache_size * 1024ull * (stream_cache_seek_min_percent / 100.0));
3304 if (res == 0) 3304 if (res == 0)
3305 if ((mpctx->eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY))) 3305 if ((mpctx->eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY)))
3306 goto goto_next_file; 3306 goto goto_next_file;
3307 } 3307 }
3308 3308