diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 14:54:30 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 14:54:30 +0000 |
commit | 1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850 (patch) | |
tree | 21c51a97dcc8659809d2c8df9f5ce363bddadb2d /src/libspeex/xine_decoder.c | |
parent | 443d766f9506dfcc19de9c8fc224a61a0922f722 (diff) | |
download | xine-lib-1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850.tar.gz xine-lib-1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850.tar.bz2 |
start xine_stream_t separation (public/private).
(we should finish this before rc3.)
- stream_info and meta_info variables are private now.
obs: everything must be recompiled due xine_stream_t changes
CVS patchset: 5733
CVS date: 2003/11/15 14:54:30
Diffstat (limited to 'src/libspeex/xine_decoder.c')
-rw-r--r-- | src/libspeex/xine_decoder.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libspeex/xine_decoder.c b/src/libspeex/xine_decoder.c index 2d6343487..0ff2b129b 100644 --- a/src/libspeex/xine_decoder.c +++ b/src/libspeex/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.2 2003/11/15 13:01:15 miguelfreitas Exp $ + * $Id: xine_decoder.c,v 1.3 2003/11/15 14:54:31 miguelfreitas Exp $ * * (ogg/)speex audio decoder plugin (libspeex wrapper) for xine */ @@ -241,8 +241,8 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { this->rate = spx_header->rate; speex_decoder_ctl (this->st, SPEEX_SET_SAMPLING_RATE, &this->rate); - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_SAMPLERATE] - = this->rate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE, + this->rate); this->channels = spx_header->nb_channels; if (this->channels == 2) { @@ -261,7 +261,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { speex_decoder_ctl (this->st, SPEEX_GET_BITRATE, &bitrate); if (bitrate <= 1) bitrate = 16000; /* assume 16 kbit */ - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITRATE] = bitrate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITRATE, bitrate); this->header_count += spx_header->extra_headers; this->expect_metadata = 1; @@ -343,7 +343,7 @@ static void speex_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { speex_decoder_ctl (this->st, SPEEX_GET_BITRATE, &bitrate); if (bitrate <= 1) bitrate = 16000; /* assume 16 kbit */ - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITRATE] = bitrate; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITRATE, bitrate); /*PCM saturation (just in case)*/ for (i=0; i < this->frame_size * this->channels; i++) |