diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/stream.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c index b0964c275e..16b3998f38 100644 --- a/libmpdemux/stream.c +++ b/libmpdemux/stream.c @@ -228,7 +228,10 @@ stream_t* new_stream(int fd,int type){ void free_stream(stream_t *s){ printf("\n*** free_stream() called ***\n"); - if(s->cache_pid) kill(s->cache_pid,SIGTERM); + if(s->cache_pid) { + kill(s->cache_pid,SIGTERM); + waitpid(s->cache_pid,NULL,0); + } if(s->priv) free(s->priv); free(s); } |