[MPlayer-dev-eng] [PATCH] fix compile when stream cache is disabled

Diego Biurrun diego at biurrun.de
Mon Mar 12 16:42:05 CET 2007


On Tue, Mar 06, 2007 at 08:26:32AM +0100, Gianluigi Tiesi wrote:
> On mingw stream cache is always disabled,
> and g++ doesn't like undefined functions.
> 
> Patch attached.
> 
> diff -NuBr -x.svn -xhelp_mp.h -xlibdha -x'*.so' -x'*.log' -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/stream/stream.h sherpya/stream/stream.h

You should start using Subversion, it will make your life so much easier
...

> --- main/stream/stream.h	2006-12-19 04:03:06.642481600 +0100
> +++ sherpya/stream/stream.h	2007-03-06 06:43:22.803419200 +0100
> @@ -119,6 +119,8 @@
>  int cache_stream_seek_long(stream_t *s,off_t pos);
>  #else
>  // no cache, define wrappers:
> +extern int stream_fill_buffer(stream_t *s);
> +extern int stream_seek_long(stream_t *s,off_t pos);
>  #define cache_stream_fill_buffer(x) stream_fill_buffer(x)
>  #define cache_stream_seek_long(x,y) stream_seek_long(x,y)
>  #define stream_enable_cache(x,y,z,w) 1

Why do you declare them extern?

Diego



More information about the MPlayer-dev-eng mailing list