[pulseaudio-commits] src/modules

Arun Raghavan arun at kemper.freedesktop.org
Tue Jun 28 10:30:20 PDT 2011


 src/modules/alsa/alsa-sink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 226ddb1d39f58df638e0a58b8eacd0921071173d
Author: Wu Fengguang <fengguang.wu at intel.com>
Date:   Tue Jun 28 09:57:33 2011 -0700

    alsa-sink: fix mmap_write() work_done
    
    mmap_write() work_done is wrongly initilized to TRUE. It ends up never
    being FALSE. Fix it to reduce the costly update_smoother() calls.

diff --git a/src/modules/alsa/alsa-sink.c b/src/modules/alsa/alsa-sink.c
index 97492ab..0164040 100644
--- a/src/modules/alsa/alsa-sink.c
+++ b/src/modules/alsa/alsa-sink.c
@@ -479,7 +479,7 @@ static size_t check_left_to_play(struct userdata *u, size_t n_bytes, pa_bool_t o
 }
 
 static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, pa_bool_t polled, pa_bool_t on_timeout) {
-    pa_bool_t work_done = TRUE;
+    pa_bool_t work_done = FALSE;
     pa_usec_t max_sleep_usec = 0, process_usec = 0;
     size_t left_to_play;
     unsigned j = 0;



More information about the pulseaudio-commits mailing list