diff 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
line wrap: on
line diff
--- a/mplayer.c	Sun Mar 04 14:37:31 2012 +0000
+++ b/mplayer.c	Sun Mar 04 14:47:37 2012 +0000
@@ -3298,9 +3298,9 @@
     if (stream_cache_size > 0) {
         int res;
         current_module = "enable_cache";
-        res = stream_enable_cache(mpctx->stream, stream_cache_size * 1024,
-                                  stream_cache_size * 1024 * (stream_cache_min_percent / 100.0),
-                                  stream_cache_size * 1024 * (stream_cache_seek_min_percent / 100.0));
+        res = stream_enable_cache(mpctx->stream, stream_cache_size * 1024ull,
+                                  stream_cache_size * 1024ull * (stream_cache_min_percent / 100.0),
+                                  stream_cache_size * 1024ull * (stream_cache_seek_min_percent / 100.0));
         if (res == 0)
             if ((mpctx->eof = libmpdemux_was_interrupted(PT_NEXT_ENTRY)))
                 goto goto_next_file;