From d59b2c345dd1c6fa09c358a33136e81aa24ee707 Mon Sep 17 00:00:00 2001 From: faust3 Date: Wed, 2 Apr 2003 16:52:00 +0000 Subject: MINGW32 port git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9799 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/stream.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmpdemux') diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c index bd1d641a1a..388ebe1f7b 100644 --- a/libmpdemux/stream.c +++ b/libmpdemux/stream.c @@ -5,8 +5,10 @@ #include #include +#ifndef __MINGW32__ #include #include +#endif #include #include #include @@ -412,12 +414,14 @@ stream_t* new_stream(int fd,int type){ void free_stream(stream_t *s){ // printf("\n*** free_stream() called ***\n"); +#ifdef USE_STREAM_CACHE if(s->cache_pid) { // kill(s->cache_pid,SIGTERM); kill(s->cache_pid,SIGKILL); waitpid(s->cache_pid,NULL,0); shmem_free(s->cache_data); } +#endif if(s->fd>0) close(s->fd); switch(s->type) { #ifdef LIBSMBCLIENT -- cgit v1.2.3