Mercurial > mplayer.hg
changeset 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 | 197b28056687 |
children | 77b12b0470e4 |
files | stream/stream.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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); }