Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
27177:197b28056687 | 27178:023835d5dfb9 |
---|---|
379 //stream_seek(s,0); | 379 //stream_seek(s,0); |
380 } | 380 } |
381 | 381 |
382 int stream_control(stream_t *s, int cmd, void *arg){ | 382 int stream_control(stream_t *s, int cmd, void *arg){ |
383 if(!s->control) return STREAM_UNSUPPORTED; | 383 if(!s->control) return STREAM_UNSUPPORTED; |
384 #ifdef USE_STREAM_CACHE | |
384 if (s->cache_pid) | 385 if (s->cache_pid) |
385 return cache_do_control(s, cmd, arg); | 386 return cache_do_control(s, cmd, arg); |
387 #endif | |
386 return s->control(s, cmd, arg); | 388 return s->control(s, cmd, arg); |
387 } | 389 } |
388 | 390 |
389 stream_t* new_memory_stream(unsigned char* data,int len){ | 391 stream_t* new_memory_stream(unsigned char* data,int len){ |
390 stream_t *s; | 392 stream_t *s; |