summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-21 23:30:34 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-21 23:30:34 +0000
commitf9c2ab17affbbfcc2068b3269887aec14fb9ddac (patch)
treed5065ba353bb505ccf596509dc81bc5e7b1703c3 /stream
parent326397d81558d229c9c616355c74b00a4b663574 (diff)
downloadmpv-f9c2ab17affbbfcc2068b3269887aec14fb9ddac.tar.bz2
mpv-f9c2ab17affbbfcc2068b3269887aec14fb9ddac.tar.xz
Declare stream_fill_buffer() and stream_seek_long() unconditionally.
They are public functions that are unconditionally compiled, so they should not be declared conditionally. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30691 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/stream/stream.h b/stream/stream.h
index e281a266f3..e5f0d90ed7 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -142,14 +142,15 @@ typedef struct stream_st {
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