diff options
author | mplayer-svn <svn@mplayerhq.hu> | 2012-03-04 14:37:31 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-03 01:52:40 +0200 |
commit | bbc9fccd46de31bacdf132762a7c0d1f8a4caf53 (patch) | |
tree | 6890f6648aac93605336a76d7bc5d236e8ea4446 /stream/stream.h | |
parent | 0dce860f6c74df1c10351bd8bbbdcc406236925e (diff) | |
download | mpv-bbc9fccd46de31bacdf132762a7c0d1f8a4caf53.tar.bz2 mpv-bbc9fccd46de31bacdf132762a7c0d1f8a4caf53.tar.xz |
cache2: allow cache sizes up to 4 TB
Remove variable that is only assigned but never used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34791 b3059339-0415-0410-9bf9-f77b7e298cf2
Allow using a cache size of up to 4 TB.
Obviously anything close to 4 GB will always fail
on 32 bit systems.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34792 b3059339-0415-0410-9bf9-f77b7e298cf2
Replace off_t by int64_t in cache code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34793 b3059339-0415-0410-9bf9-f77b7e298cf2
Remove casts that are no longer necessary.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34794 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix header file after r34793.
Patch by Stephen Sheldon, sfsheldo gmail com.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34802 b3059339-0415-0410-9bf9-f77b7e298cf2
Put #include <inttypes.h> into the header file where it should be.
Reported by Stephen Sheldon, sfsheldo gmail com.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34798 b3059339-0415-0410-9bf9-f77b7e298cf2
Correct r34798.
The header only needs stdint.h while the C file needs inttypes.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34799 b3059339-0415-0410-9bf9-f77b7e298cf2
Author: reimar
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream.h b/stream/stream.h index 3ad65bb656..c34da4b61a 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -183,9 +183,9 @@ int stream_fill_buffer(stream_t *s); int stream_seek_long(stream_t *s, off_t pos); #ifdef CONFIG_STREAM_CACHE -int stream_enable_cache(stream_t *stream,int size,int min,int prefill); +int stream_enable_cache(stream_t *stream,int64_t size,int64_t min,int64_t prefill); int cache_stream_fill_buffer(stream_t *s); -int cache_stream_seek_long(stream_t *s,off_t pos); +int cache_stream_seek_long(stream_t *s,int64_t pos); #else // no cache, define wrappers: #define cache_stream_fill_buffer(x) stream_fill_buffer(x) |