[polypaudio-commits] r458 - /trunk/polyp/module-solaris.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Jan 19 02:26:08 PST 2006


Author: ossman
Date: Thu Jan 19 11:26:06 2006
New Revision: 458

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=458&root=polypaudio&view=rev
Log:
Open the device in non-blocking mode.

Modified:
    trunk/polyp/module-solaris.c

Modified: trunk/polyp/module-solaris.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/polyp/module-solaris.c?rev=458&root=polypaudio&r1=457&r2=458&view=diff
==============================================================================
--- trunk/polyp/module-solaris.c (original)
+++ trunk/polyp/module-solaris.c Thu Jan 19 11:26:06 2006
@@ -382,7 +382,7 @@
         goto fail;
     }
     
-    if ((fd = open(p = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), mode)) < 0)
+    if ((fd = open(p = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), mode | O_NONBLOCK)) < 0)
         goto fail;
 
     pa_log_info(__FILE__": device opened in %s mode.\n", mode == O_WRONLY ? "O_WRONLY" : (mode == O_RDONLY ? "O_RDONLY" : "O_RDWR"));




More information about the pulseaudio-commits mailing list