[MPlayer-dev-eng] stream/stream.c and cache_do_control function

Andrea Palmatè andrea at amigasoft.net
Wed Jun 25 09:49:36 CEST 2008


Hi all,

after a long time i'm trying to recompile mplayer and apply all my old patches.
Just a little question in stream/stream.c file 
there is the stream_control function that imho should be this

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);
}

and so, add an #ifdef USE_STREAM_CACHE to the 
second if otherwise you will get an undefined error on cache_do_control

Regards,

Andrea Palmatè
http://www.amigasoft.net  





More information about the MPlayer-dev-eng mailing list