Mercurial > mplayer.hg
diff stream/stream.c @ 27178:023835d5dfb9
Surround stream cache specific code by an appropriate #ifdef; fixes linking
when stream cache is disabled.
noticed by Andrea Palmat, andrea amigasoft net
author | diego |
---|---|
date | Sat, 05 Jul 2008 14:22:57 +0000 |
parents | 77003eb2d9a8 |
children | e7c989f7a7c9 |
line wrap: on
line diff
--- a/stream/stream.c Sat Jul 05 13:12:12 2008 +0000 +++ b/stream/stream.c Sat Jul 05 14:22:57 2008 +0000 @@ -381,8 +381,10 @@ 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); }