From 69fb99f92a8db3aebe0c66aaa146a26d12ac1d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Wed, 13 Jun 2007 16:37:19 +0200 Subject: Remove most of warnings from the speex_decoder. --- src/combined/xine_speex_decoder.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/combined/xine_speex_decoder.c b/src/combined/xine_speex_decoder.c index a17de15d6..d886f9153 100644 --- a/src/combined/xine_speex_decoder.c +++ b/src/combined/xine_speex_decoder.c @@ -193,6 +193,7 @@ void read_metadata (speex_decoder_t *this, char * comments, int length) static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { speex_decoder_t *this = (speex_decoder_t *) this_gen; + char *const buf_content = (char*)buf->content; llprintf (LOG_BUFFERS, "decode buf=%8p content=%8p flags=%08x\n", buf, buf->content, buf->decoder_flags); @@ -211,7 +212,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { speex_bits_init (&this->bits); - spx_header = speex_packet_to_header (buf->content, buf->size); + spx_header = speex_packet_to_header (buf_content, buf->size); if (!spx_header) { xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, "libspeex: could not read Speex header\n"); @@ -261,7 +262,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { free (spx_header); } else if (this->expect_metadata) { - read_metadata (this, buf->content, buf->size); + read_metadata (this, buf_content, buf->size); } this->header_count--; @@ -282,14 +283,14 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { } } else if (this->output_open) { - int i, j; + int j; audio_buffer_t *audio_buffer; audio_buffer = this->stream->audio_out->get_buffer (this->stream->audio_out); - speex_bits_read_from (&this->bits, buf->content, buf->size); + speex_bits_read_from (&this->bits, buf_content, buf->size); for (j = 0; j < this->nframes; j++) { int ret; -- cgit v1.2.3