diff options
author | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 13:01:00 +0000 |
---|---|---|
committer | Miguel Freitas <miguelfreitas@users.sourceforge.net> | 2003-11-15 13:01:00 +0000 |
commit | 570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b (patch) | |
tree | ed387d71185404d03367e64a52093b0e6369ed67 /src/libvorbis/xine_decoder.c | |
parent | bb62a769e4a50cef3023408bf9a527e63b7d884d (diff) | |
download | xine-lib-570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b.tar.gz xine-lib-570fd9006dcf6f9aaa460e79b93b7ce37f7c6d7b.tar.bz2 |
more helper functions cleanup (stream info, meta info)
CVS patchset: 5731
CVS date: 2003/11/15 13:01:00
Diffstat (limited to 'src/libvorbis/xine_decoder.c')
-rw-r--r-- | src/libvorbis/xine_decoder.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libvorbis/xine_decoder.c b/src/libvorbis/xine_decoder.c index 616ef6e48..2dc57f989 100644 --- a/src/libvorbis/xine_decoder.c +++ b/src/libvorbis/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.27 2003/05/01 20:36:07 heinchen Exp $ + * $Id: xine_decoder.c,v 1.28 2003/11/15 13:01:18 miguelfreitas Exp $ * * (ogg/)vorbis audio decoder plugin (libvorbis wrapper) for xine */ @@ -121,15 +121,15 @@ static void get_metadata (vorbis_decoder_t *this) { i, vorbis_comment_keys[i].xine_metainfo_index); #endif - this->stream->meta_info[vorbis_comment_keys[i].xine_metainfo_index] - = strdup (comment + strlen(vorbis_comment_keys[i].key)); + xine_set_meta_info(this->stream, vorbis_comment_keys[i].xine_metainfo_index, + = comment + strlen(vorbis_comment_keys[i].key)); } } ++ptr; } - this->stream->meta_info[XINE_META_INFO_AUDIOCODEC] = strdup ("vorbis"); + xine_set_meta_info(this->stream, XINE_META_INFO_AUDIOCODEC, "vorbis"); } static void vorbis_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { @@ -194,7 +194,8 @@ static void vorbis_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { this->vi.rate, mode) ; - this->stream->stream_info[XINE_STREAM_INFO_AUDIO_BITRATE]=this->vi.bitrate_nominal; + xine_set_stream_info(this->stream, XINE_STREAM_INFO_AUDIO_BITRATE, + this->vi.bitrate_nominal); } |