mp3_afh.c: Kill unused inbuf and inbuf_size;
authorAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 22:34:45 +0000 (23:34 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 22:34:45 +0000 (23:34 +0100)
mp3_afh.c

index 4eaad087f1405d3b7ee85d8ec4121c0cac15bf21..83678389a8c21f211f2f55dea9157eb89412e1ca 100644 (file)
--- 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};