From 391d09cd6e8d47ad8255736be5cb512b04843ed1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 11 Sep 2007 13:15:39 +0000 Subject: add 'wait' parameter to pa_rtpoll_run(), if zero pa_rtpoll_runn will only update the struct pollfd but not wait for an event git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1803 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/modules/module-alsa-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/module-alsa-sink.c') diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c index c75f195e..bb7392d8 100644 --- a/src/modules/module-alsa-sink.c +++ b/src/modules/module-alsa-sink.c @@ -643,7 +643,7 @@ static void thread_func(void *userdata) { continue; /* Hmm, nothing to do. Let's sleep */ - if (pa_rtpoll_run(u->rtpoll) < 0) { + if (pa_rtpoll_run(u->rtpoll, 1) < 0) { pa_log("poll() failed: %s", pa_cstrerror(errno)); goto fail; } -- cgit