diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-01-23 15:05:58 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-01-23 15:05:58 +0000 |
commit | c5fe63cf42883e5b859c8f585a7b194c9b48f8a4 (patch) | |
tree | 0f05876da9e2b6b44927bdeff4ced3f29e489392 /src | |
parent | 0d2cc3cd75999059c38ec2cc20c83b985eb6d885 (diff) | |
download | xine-lib-c5fe63cf42883e5b859c8f585a7b194c9b48f8a4.tar.gz xine-lib-c5fe63cf42883e5b859c8f585a7b194c9b48f8a4.tar.bz2 |
Set audio channels, samplerate and bits per sample properties.
CVS patchset: 8543
CVS date: 2007/01/23 15:05:58
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_wavpack.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/demuxers/demux_wavpack.c b/src/demuxers/demux_wavpack.c index 96d517a9f..246cab7e2 100644 --- a/src/demuxers/demux_wavpack.c +++ b/src/demuxers/demux_wavpack.c @@ -19,7 +19,7 @@ * * xine interface to libwavpack by Diego Pettenò <flameeyes@gentoo.org> * - * $Id: demux_wavpack.c,v 1.4 2007/01/19 00:26:40 dgp85 Exp $ + * $Id: demux_wavpack.c,v 1.5 2007/01/23 15:05:58 dgp85 Exp $ */ #define LOG_MODULE "demux_wavpack" @@ -180,7 +180,14 @@ static int open_wv_file(demux_wv_t *const this) { this->length = this->samples / this->samplerate; _x_stream_info_set(this->stream, XINE_STREAM_INFO_HAS_AUDIO, 1); - _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC, ME_32(this->header.buffer)); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_FOURCC, + ME_32(this->header.buffer)); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_CHANNELS, + this->channels); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_SAMPLERATE, + this->samplerate); + _x_stream_info_set(this->stream, XINE_STREAM_INFO_AUDIO_BITS, + this->bits_per_sample); WavpackCloseFile(ctx); this->input->seek(this->input, SEEK_SET, 0); @@ -293,6 +300,7 @@ static int demux_wv_seek (demux_plugin_t *this_gen, _x_demux_control_newpts(this->stream, 0, 0); this->status = DEMUX_OK; + } return this->status; |