diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-08-12 12:49:37 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-08-12 12:49:37 +0300 |
commit | 0d091760781466c3cb6a3426daecadf8a696fa88 (patch) | |
tree | e1f19671d2b3baf7b0f575e49182143cd9ccc5ab /stream/stream.h | |
parent | 17d3e4b36d18f4a653f7c5f6ea2f15fcd3a2f069 (diff) | |
download | mpv-0d091760781466c3cb6a3426daecadf8a696fa88.tar.bz2 mpv-0d091760781466c3cb6a3426daecadf8a696fa88.tar.xz |
stream.h: Add 2 prototypes instead of declaring them in cache2.c
Declare stream_fill_buffer() and stream_seek_long() always (before
they were only declared if cache was disabled and those were used
instead of cached versions). Remove the now redundant declarations in
cache2.c.
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 a2f78307de..9b598418ef 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -119,14 +119,14 @@ typedef struct stream { unsigned char buffer[STREAM_BUFFER_SIZE>VCD_SECTOR_SIZE?STREAM_BUFFER_SIZE:VCD_SECTOR_SIZE]; } stream_t; +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 cache_stream_fill_buffer(stream_t *s); int cache_stream_seek_long(stream_t *s,off_t pos); #else // no cache, define wrappers: -int stream_fill_buffer(stream_t *s); -int stream_seek_long(stream_t *s,off_t pos); #define cache_stream_fill_buffer(x) stream_fill_buffer(x) #define cache_stream_seek_long(x,y) stream_seek_long(x,y) #define stream_enable_cache(x,y,z,w) 1 |