bluetooth: Print SO_TIMESTAMP warning for SCO source only once
authorPali Rohár <pali.rohar@gmail.com>
Fri, 21 Jun 2019 18:36:09 +0000 (20:36 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 2 Jan 2020 11:32:45 +0000 (13:32 +0200)
src/modules/bluetooth/module-bluez5-device.c

index 9a81f4c..9da5d1a 100644 (file)
@@ -395,7 +395,9 @@ static int sco_process_push(struct userdata *u) {
         }
 
     if (!found_tstamp) {
-        pa_log_warn("Couldn't find SO_TIMESTAMP data in auxiliary recvmsg() data!");
+        PA_ONCE_BEGIN {
+            pa_log_warn("Couldn't find SO_TIMESTAMP data in auxiliary recvmsg() data!");
+        } PA_ONCE_END;
         tstamp = pa_rtclock_now();
     }