module-rtp-sink: silence some messages

This commit is contained in:
Wim Taymans 2022-12-08 12:10:22 +01:00
parent 2f397035b8
commit 9bf6fa05d1

View file

@ -306,8 +306,17 @@ static void flush_packets(struct impl *impl)
&iov[1], tosend); &iov[1], tosend);
n = sendmsg(impl->rtp_fd, &msg, MSG_NOSIGNAL); n = sendmsg(impl->rtp_fd, &msg, MSG_NOSIGNAL);
if (n < 0) if (n < 0) {
switch (errno) {
case ECONNREFUSED:
case ECONNRESET:
pw_log_debug("remote end not listening");
break;
default:
pw_log_warn("sendmsg() failed: %m"); pw_log_warn("sendmsg() failed: %m");
break;
}
}
impl->seq++; impl->seq++;
impl->timestamp += tosend / impl->frame_size; impl->timestamp += tosend / impl->frame_size;