From 12f8ca664b91369f411c0037512a76e8713a2c7a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 20 May 2025 10:41:59 +0200 Subject: [PATCH] adapter: log command errors when no converter --- spa/plugins/audioconvert/audioadapter.c | 2 +- spa/plugins/videoconvert/videoadapter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index 025c5a661..e9ea63247 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -1059,7 +1059,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman } res = spa_node_send_command(this->target, command); - if (res == -ENOTSUP) + if (res == -ENOTSUP && this->target != this->follower) res = 0; if (res < 0) { spa_log_error(this->log, "%p: can't send command %d: %s", diff --git a/spa/plugins/videoconvert/videoadapter.c b/spa/plugins/videoconvert/videoadapter.c index c0d651c24..568e72cab 100644 --- a/spa/plugins/videoconvert/videoadapter.c +++ b/spa/plugins/videoconvert/videoadapter.c @@ -1110,7 +1110,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman } res = spa_node_send_command(this->target, command); - if (res == -ENOTSUP) + if (res == -ENOTSUP && this->target != this->follower) res = 0; if (res < 0) { spa_log_error(this->log, "%p: can't send command %d: %s",