X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=mp3_afh.c;h=83678389a8c21f211f2f55dea9157eb89412e1ca;hb=bbdfe9b60d66ce42e89653303d07870f91b721dd;hp=4eaad087f1405d3b7ee85d8ec4121c0cac15bf21;hpb=02d14b8dab5d70d73402fb12a6bd642f70287b52;p=paraslash.git 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};