From acad6b8f2b98fdf4e88a0f9e53532ed4d6a3fd3d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 6 Jul 2021 16:28:57 +0200 Subject: [PATCH] audioconvert: use the right variable Keep the result of the follower in res2, fail if we could not set the properties on both the follower and the converter. --- spa/plugins/audioconvert/audioadapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioadapter.c b/spa/plugins/audioconvert/audioadapter.c index b10cfa45b..f65dc39b4 100644 --- a/spa/plugins/audioconvert/audioadapter.c +++ b/spa/plugins/audioconvert/audioadapter.c @@ -453,7 +453,7 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags, case SPA_PARAM_Props: if (this->target != this->follower) res = spa_node_set_param(this->target, id, flags, param); - res = spa_node_set_param(this->follower, id, flags, param); + res2 = spa_node_set_param(this->follower, id, flags, param); if (res < 0 && res2 < 0) return res; res = 0;