extern struct misc_meta_data *mmd;
extern struct sender senders[];
-static int audio_file;
static char *map;
/**
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;
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;