From b63230f805184952905a5373712d137fe6799261 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 16 Jan 2024 16:35:50 +0100 Subject: [PATCH] impl-port: res > 0 means the param was modified Only log the error when the res < 0, otherwise the param was accepted bu modified. --- src/pipewire/impl-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipewire/impl-port.c b/src/pipewire/impl-port.c index 8add1cd2a..1359f3c82 100644 --- a/src/pipewire/impl-port.c +++ b/src/pipewire/impl-port.c @@ -1716,7 +1716,7 @@ int pw_impl_port_set_param(struct pw_impl_port *port, uint32_t id, uint32_t flag pw_log_debug("%p: %d set param on node %d:%d id:%d (%s): %d (%s)", port, port->state, port->direction, port->port_id, id, spa_debug_type_find_name(spa_type_param, id), - res, spa_strerror(res)); + res, res <= 0 ? spa_strerror(res) : "modified"); /* set the parameters on all ports of the mixer node if possible */ if (res >= 0) {