ogg_afh.c: Rename oggbuf_len to inbuf_size
authorAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 19:26:52 +0000 (20:26 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 Mar 2007 19:26:52 +0000 (20:26 +0100)
so that it matches the naming of the other audio format handlers

ogg_afh.c

index 70cd9f6439286503847709d2a165ca32132d74f1..fcc88362981c815cd0a04823d504a7ea4df5dec0 100644 (file)
--- a/ogg_afh.c
+++ b/ogg_afh.c
@@ -35,7 +35,7 @@ static double chunk_time = 0.25;
 
 static OggVorbis_File *oggvorbis_file;
 static FILE *infile;
-static int header_len, oggbuf_len, vi_channels;
+static int header_len, inbuf_size, vi_channels;
 static char *header, *inbuf;
 static ssize_t *chunk_table, max_chunk_len;
 static struct audio_format_handler *af;
@@ -203,7 +203,7 @@ static void ogg_close_audio_file(void)
        num_chunks = 0;
        free(inbuf);
        inbuf = NULL;
-       oggbuf_len = 0;
+       inbuf_size = 0;
 }
 
 static int ogg_save_header(FILE *file, int len)
@@ -318,11 +318,11 @@ static char *ogg_read_chunk(long unsigned current_chunk, ssize_t *len)
                return NULL;
        }
        *len = cs;
-       if (!inbuf || oggbuf_len < *len) {
+       if (!inbuf || inbuf_size < *len) {
                PARA_INFO_LOG("increasing ogg buffer size (%d -> %zu)\n",
-                       oggbuf_len, *len);
+                       inbuf_size, *len);
                inbuf = para_realloc(inbuf, *len);
-               oggbuf_len = *len;
+               inbuf_size = *len;
        }
        ret = read(fileno(infile), inbuf, *len);
        if (!ret) {