From: Andre Noll Date: Mon, 22 Oct 2007 23:23:17 +0000 (+0200) Subject: vss.c: Kill unused int audio_file. X-Git-Tag: v0.3.0~262 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=28afc7781a88734d8954cab3665eb3eacd11c284;p=paraslash.git vss.c: Kill unused int audio_file. --- diff --git a/vss.c b/vss.c index 0bc2aed4..ab5cd1b1 100644 --- a/vss.c +++ b/vss.c @@ -40,7 +40,6 @@ static struct timeval autoplay_barrier; extern struct misc_meta_data *mmd; extern struct sender senders[]; -static int audio_file; static char *map; /** @@ -194,7 +193,6 @@ static void vss_eof(void) tv_add(&mmd->afi.eof_tv, &now, &eof_barrier); munmap(map, mmd->size); map = NULL; - close(audio_file); mmd->audio_format = -1; mmd->chunks_sent = 0; mmd->offset = 0; @@ -397,6 +395,7 @@ static void recv_afs_result(void) mmd->mtime = statbuf.st_mtime; map = para_mmap(mmd->size, PROT_READ, MAP_PRIVATE, passed_fd, 0); + close(passed_fd); strcpy(mmd->filename, mmd->afd.path); /* FIXME: check length */ mmd->afi.header_len = 0; /* default: no header */ mmd->audio_format = mmd->afd.afsi.audio_format_id;