From 9bf6fa05d1b348f25b0162db8d0694e8bd17fae2 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 8 Dec 2022 12:10:22 +0100 Subject: [PATCH] module-rtp-sink: silence some messages --- src/modules/module-rtp-sink.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/module-rtp-sink.c b/src/modules/module-rtp-sink.c index 014446d5c..8a00848ec 100644 --- a/src/modules/module-rtp-sink.c +++ b/src/modules/module-rtp-sink.c @@ -306,8 +306,17 @@ static void flush_packets(struct impl *impl) &iov[1], tosend); n = sendmsg(impl->rtp_fd, &msg, MSG_NOSIGNAL); - if (n < 0) - pw_log_warn("sendmsg() failed: %m"); + if (n < 0) { + switch (errno) { + case ECONNREFUSED: + case ECONNRESET: + pw_log_debug("remote end not listening"); + break; + default: + pw_log_warn("sendmsg() failed: %m"); + break; + } + } impl->seq++; impl->timestamp += tosend / impl->frame_size;