From 0b2ed65981222c8469761ed70dc85e86a0c3a688 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 5 Jul 2008 14:22:57 +0000 Subject: [PATCH] =?UTF-8?q?Surround=20stream=20cache=20specific=20code=20b?= =?UTF-8?q?y=20an=20appropriate=20#ifdef;=20fixes=20linking=20when=20strea?= =?UTF-8?q?m=20cache=20is=20disabled.=20noticed=20by=20Andrea=20Palmat?= =?UTF-8?q?=C3=A8,=20andrea=20amigasoft=20net?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27210 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream.c | 2 ++ 1 file changed, 2 insertions(+) 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); }