]> code.delx.au - pulseaudio/commitdiff
rate limit a warning
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Jan 2009 00:36:43 +0000 (01:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Jan 2009 00:36:43 +0000 (01:36 +0100)
src/pulsecore/asyncq.c

index c9815054af5af67ee9e32696fa79a20764f191f0..67f661fe8eb0557dab3f1e4bfe70ad9085879327 100644 (file)
@@ -206,7 +206,8 @@ void pa_asyncq_post(pa_asyncq*l, void *p) {
     /* OK, we couldn't push anything in the queue. So let's queue it
      * locally and push it later */
 
-    pa_log("q overrun, queuing locally");
+    if (pa_log_ratelimit())
+        pa_log_warn("q overrun, queuing locally");
 
     if (!(q = pa_flist_pop(PA_STATIC_FLIST_GET(localq))))
         q = pa_xnew(struct localq, 1);