changeset 8848:d98f312051fd

10l noticed by Joe Barnett <sanchezthecactus@yahoo.com>
author arpi
date Thu, 09 Jan 2003 09:27:51 +0000
parents 7da2d67e8ef4
children 9476ccf6a41d
files libao2/ao_oss.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_oss.c	Wed Jan 08 22:08:59 2003 +0000
+++ b/libao2/ao_oss.c	Thu Jan 09 09:27:51 2003 +0000
@@ -149,11 +149,10 @@
   if(ao_data.format!=format)
 	mp_msg(MSGT_AO,MSGL_WARN,"WARNING! Your soundcard does NOT support %s sample format! Broken audio or bad playback speed are possible! Try with '-aop list=format'\n",audio_out_format_name(format));
 #endif
-
   
+  ao_data.channels = channels;
   if(format != AFMT_AC3) {
     // We only use SNDCTL_DSP_CHANNELS for >2 channels, in case some drivers don't have it
-    ao_data.channels = channels;
     if (ao_data.channels > 2) {
       if ( ioctl(audio_fd, SNDCTL_DSP_CHANNELS, &ao_data.channels) == -1 ||
 	   ao_data.channels != channels ) {