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

Stan Seibert volsung at xiph.org
Tue Sep 23 07:22:55 PDT 2003



volsung     03/09/23 10:22:55

  Modified:    src/plugins/oss ao_oss.c
  Log:
  Some daemons close stdin, so the next file descriptor they get is 0.  Allow
  0 to be used for playback.  Closes bug 455.

Revision  Changes    Path
1.14      +1 -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.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- ao_oss.c	10 Apr 2002 21:53:56 -0000	1.13
+++ ao_oss.c	23 Sep 2003 14:22:55 -0000	1.14
@@ -105,7 +105,7 @@
 
 #ifdef BROKEN_OSS
         /* Now have to remove the O_NONBLOCK flag if so instructed. */
-	if (fd > 0 && blocking) {
+	if (fd >= 0 && blocking) {
                 if (fcntl(fd, F_SETFL, 0) < 0) { /* Remove O_NONBLOCK */
                         /* If we can't go to blocking mode, we can't use
                            this device */

<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