From: Andre Noll Date: Sun, 4 Mar 2007 22:34:45 +0000 (+0100) Subject: mp3_afh.c: Kill unused inbuf and inbuf_size; X-Git-Tag: v0.2.16~61 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=e58f86238842bc1f47f7b9b5757c384625ceb8b2;hp=02d14b8dab5d70d73402fb12a6bd642f70287b52 mp3_afh.c: Kill unused inbuf and inbuf_size; --- diff --git a/mp3_afh.c b/mp3_afh.c index 4eaad087..83678389 100644 --- a/mp3_afh.c +++ b/mp3_afh.c @@ -46,7 +46,6 @@ #define FRAME_HEADER_SIZE 4 #define MIN_FRAME_SIZE 21 -#define DEFAULT_INBUF_SIZE 8192 struct mp3header { unsigned long sync; @@ -107,8 +106,6 @@ static const char *mode_text[] = {"stereo", "joint stereo", "dual channel", "mon static FILE *infile; static struct mp3info mp3; -static char *inbuf; -static size_t inbuf_size; static struct audio_format_handler *af; static ssize_t *chunk_table, num_chunks; @@ -367,8 +364,6 @@ static int mp3_read_info(void) unsigned chunk_table_size = 1000; /* gets increased on demand */ num_chunks = 0; - inbuf = para_malloc(DEFAULT_INBUF_SIZE); - inbuf_size = DEFAULT_INBUF_SIZE; chunk_table = para_malloc(chunk_table_size * sizeof(size_t)); ret = mp3_get_id3(); if (ret < 0) @@ -443,7 +438,6 @@ static int mp3_read_info(void) err_out: PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); free(chunk_table); - free(inbuf); return ret; } @@ -479,7 +473,6 @@ static void mp3_close_audio_file(void) fclose(infile); infile = NULL; free(chunk_table); - free(inbuf); } static const char* mp3_suffixes[] = {"mp3", NULL};