From de66644776da40ac7e8d706fb5d5a36d007fa7ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Fri, 21 Jun 2019 20:36:09 +0200 Subject: [PATCH] bluetooth: Print SO_TIMESTAMP warning for SCO source only once --- src/modules/bluetooth/module-bluez5-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c index 9a81f4c..9da5d1a 100644 --- a/src/modules/bluetooth/module-bluez5-device.c +++ b/src/modules/bluetooth/module-bluez5-device.c @@ -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(); } -- 2.7.4