[pulseaudio-commits] r1912 - /branches/lennart/src/modules/module-oss.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Sep 28 05:22:57 PDT 2007


Author: lennart
Date: Fri Sep 28 14:22:56 2007
New Revision: 1912

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1912&root=pulseaudio&view=rev
Log:
only do IO if we are RUNNING or IDLE, but not when we are in INIT

Modified:
    branches/lennart/src/modules/module-oss.c

Modified: branches/lennart/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/module-oss.c?rev=1912&root=pulseaudio&r1=1911&r2=1912&view=diff
==============================================================================
--- branches/lennart/src/modules/module-oss.c (original)
+++ branches/lennart/src/modules/module-oss.c Fri Sep 28 14:22:56 2007
@@ -849,7 +849,7 @@
 
         /* Render some data and write it to the dsp */
 
-        if (u->sink && u->sink->thread_info.state != PA_SINK_UNLINKED && u->fd >= 0 && (revents & POLLOUT)) {
+        if (u->sink && PA_SINK_OPENED(u->sink->thread_info.state) && (revents & POLLOUT)) {
 
             if (u->use_mmap) {
 
@@ -939,7 +939,7 @@
 
         /* Try to read some data and pass it on to the source driver */
 
-        if (u->source && u->source->thread_info.state != PA_SOURCE_UNLINKED && u->fd >= 0 && ((revents & POLLIN))) {
+        if (u->source && PA_SOURCE_OPENED(u->source->thread_info.state) && ((revents & POLLIN))) {
 
             if (u->use_mmap) {
 




More information about the pulseaudio-commits mailing list