aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-05 14:22:57 +0000
committerGravatar diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-05 14:22:57 +0000
commit0b2ed65981222c8469761ed70dc85e86a0c3a688 (patch)
treef8c43c23a4810071f5955d2eb3099a45ea33e753 /stream
parentc5701645aaec9d337793b773e1b78f21d04ca5d4 (diff)
Surround stream cache specific code by an appropriate #ifdef; fixes linking
when stream cache is disabled. noticed by Andrea Palmatè, andrea amigasoft net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27210 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 19c7bab091..c95dabefb0 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -381,8 +381,10 @@ void stream_reset(stream_t *s){
int stream_control(stream_t *s, int cmd, void *arg){
if(!s->control) return STREAM_UNSUPPORTED;
+#ifdef USE_STREAM_CACHE
if (s->cache_pid)
return cache_do_control(s, cmd, arg);
+#endif
return s->control(s, cmd, arg);
}