[xiph-cvs] cvs commit: ao/src/plugins/oss ao_oss.c

Warren Dukes shank at xiph.org
Mon Apr 12 20:03:56 PDT 2004



shank       04/04/12 23:03:56

  Modified:    src/plugins/oss ao_oss.c
  Log:
  oops, when checking assigned channels compare to format->channels, not
  format

Revision  Changes    Path
1.19      +2 -1      ao/src/plugins/oss/ao_oss.c

Index: ao_oss.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/plugins/oss/ao_oss.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- a/ao_oss.c	12 Apr 2004 22:53:01 -0000	1.18
+++ b/ao_oss.c	13 Apr 2004 03:03:55 -0000	1.19
@@ -231,7 +231,8 @@
                 goto ERR;
         }
         
-	if (ioctl(internal->fd,SNDCTL_DSP_STEREO,&tmp) < 0 || tmp+1 != format) {
+	if (ioctl(internal->fd,SNDCTL_DSP_STEREO,&tmp) < 0 || 
+			tmp+1 != format->channels) {
                 fprintf(stderr, "libao - OSS cannot set channels to %d\n", 
                         format->channels);
                 goto ERR;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list