From: Andre Noll Date: Sun, 4 Mar 2007 19:26:52 +0000 (+0100) Subject: ogg_afh.c: Rename oggbuf_len to inbuf_size X-Git-Tag: v0.2.16~68 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=0bd031509add6dccedb04a1e79420a7a9ca02711;p=paraslash.git ogg_afh.c: Rename oggbuf_len to inbuf_size so that it matches the naming of the other audio format handlers --- diff --git a/ogg_afh.c b/ogg_afh.c index 70cd9f64..fcc88362 100644 --- 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) {