summaryrefslogtreecommitdiff
path: root/src/liblpcm/xine_decoder.c
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2006-03-07 08:03:08 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2006-03-07 08:03:08 +0000
commit013d38071c3579a2006baf107b9f43cbef0bc569 (patch)
tree67a1d3e9b18985e995f82f6b2138f5937052a49e /src/liblpcm/xine_decoder.c
parentfffa38ba786165e6c4f3c449ec29e3bdc6be0820 (diff)
downloadxine-lib-013d38071c3579a2006baf107b9f43cbef0bc569.tar.gz
xine-lib-013d38071c3579a2006baf107b9f43cbef0bc569.tar.bz2
Fixed channels to mode translation in audio decoders.
Patch from Chris Brien. CVS patchset: 7922 CVS date: 2006/03/07 08:03:08
Diffstat (limited to 'src/liblpcm/xine_decoder.c')
-rw-r--r--src/liblpcm/xine_decoder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblpcm/xine_decoder.c b/src/liblpcm/xine_decoder.c
index 5577ff998..92be95ae8 100644
--- a/src/liblpcm/xine_decoder.c
+++ b/src/liblpcm/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.56 2004/12/16 13:59:10 mroi Exp $
+ * $Id: xine_decoder.c,v 1.57 2006/03/07 08:03:10 tmattern Exp $
*
* 31-8-2001 Added LPCM rate sensing.
* (c) 2001 James Courtier-Dutton James@superbug.demon.co.uk
@@ -130,7 +130,7 @@ static void lpcm_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) {
if (this->output_open)
this->stream->audio_out->close (this->stream->audio_out, this->stream);
- this->ao_cap_mode=(this->number_of_channels == 2) ? AO_CAP_MODE_STEREO : AO_CAP_MODE_MONO;
+ this->ao_cap_mode=_x_ao_channels2mode(this->number_of_channels);
/* force 24-bit samples into 16 bits for now */
if (this->bits_per_sample == 24)