X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=ogg_afh.c;h=3c7a143121897d045658195713bcb47170c6324f;hp=1034091358b51b300737fcd3ae5404ac0a5363fe;hb=0b814bdbb7a3fe018cffee0162dc6c916cfa6879;hpb=3a624c04894f5b0fa4a1c0850307b33bf92c8e51 diff --git a/ogg_afh.c b/ogg_afh.c index 10340913..3c7a1431 100644 --- a/ogg_afh.c +++ b/ogg_afh.c @@ -32,8 +32,6 @@ #define CHUNK_SIZE 32768 static double chunk_time = 0.25; -FILE *audio_file; - static size_t cb_read(void *buf, size_t size, size_t nmemb, void *datasource) { FILE *f = datasource; @@ -214,11 +212,6 @@ static long unsigned ogg_compute_chunk_table(OggVorbis_File *of, return num_chunks; } -static void ogg_close_audio_file(void) -{ - fclose(audio_file); -} - /* * Init oggvorbis file and write some tech data to given pointers. */ @@ -266,7 +259,6 @@ static int ogg_get_file_info(FILE *file, struct audio_format_info *afi) vi_sampling_rate / 1000, vi->channels, vi_bitrate / 1000 ); rewind(file); - audio_file = file; afi->chunk_tv.tv_sec = 0; afi->chunk_tv.tv_usec = 250 * 1000; tv_scale(3, &afi->chunk_tv, &afi->eof_tv); @@ -288,6 +280,5 @@ static const char* ogg_suffixes[] = {"ogg", NULL}; void ogg_init(struct audio_format_handler *afh) { afh->get_file_info = ogg_get_file_info, - afh->close_audio_file = ogg_close_audio_file; afh->suffixes = ogg_suffixes; }