Web lists-archives.org

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




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  


_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng