[pulseaudio-commits] r2438 - /branches/glitch-free/src/modules/module-alsa-sink.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu May 15 15:24:19 PDT 2008


Author: lennart
Date: Fri May 16 00:24:18 2008
New Revision: 2438

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2438&root=pulseaudio&view=rev
Log:
fix suspend for alsa sink

Modified:
    branches/glitch-free/src/modules/module-alsa-sink.c

Modified: branches/glitch-free/src/modules/module-alsa-sink.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/modules/module-alsa-sink.c?rev=2438&root=pulseaudio&r1=2437&r2=2438&view=diff
==============================================================================
--- branches/glitch-free/src/modules/module-alsa-sink.c (original)
+++ branches/glitch-free/src/modules/module-alsa-sink.c Fri May 16 00:24:18 2008
@@ -868,6 +868,9 @@
     snd_pcm_sframes_t before;
     pa_assert(u);
 
+    if (!u->pcm_handle)
+        return;
+
     before = u->hwbuf_unused_frames;
     update_sw_params(u);
 
@@ -1003,7 +1006,7 @@
                      * we have filled the buffer at least once
                      * completely.*/
 
-                    pa_log_debug("Cutting sleep time for the initial iterations by half.");
+                    /*pa_log_debug("Cutting sleep time for the initial iterations by half.");*/
                     sleep_usec /= 2;
                 }
 




More information about the pulseaudio-commits mailing list