From 79fd4c941fe9b6493329284d636007ca4ae92275 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 7 May 2020 16:35:36 +0200 Subject: [PATCH] debug: Don't debug EBUSY params When a device returned EBUSY when enumerating params, don't try to enumerate (and fail) them again. --- spa/plugins/audioconvert/audioadapter.c | 2 ++ src/pipewire/context.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index c9593f8d2..f70d6d6d3 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -212,6 +212,8 @@ static int debug_params(struct impl *this, struct spa_node *node, spa_log_error(this->log, "params %s: %d:%d (%s) %s", spa_debug_type_find_name(spa_type_param, id), direction, port_id, debug, spa_strerror(err)); + if (err == -EBUSY) + return 0; state = 0; while (true) { diff --git a/src/pipewire/context.c b/src/pipewire/context.c index fc8a5b45d..25d7d6daa 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -600,6 +600,8 @@ int pw_context_debug_port_params(struct pw_context *this, pw_log_error("params %s: %d:%d (%s) %s", spa_debug_type_find_name(spa_type_param, id), direction, port_id, debug, spa_strerror(err)); + if (err == -EBUSY) + return 0; state = 0; while (true) {