diff --git a/src/modules/module-filter-chain.c b/src/modules/module-filter-chain.c index 3cf272a0f..a523a9827 100644 --- a/src/modules/module-filter-chain.c +++ b/src/modules/module-filter-chain.c @@ -831,8 +831,7 @@ static int load_node(struct graph *graph, struct spa_json *json) return -EINVAL; } } else if (strcmp("control", key) == 0) { - if (spa_json_enter_array(json, &it[0]) <= 0) - return -EINVAL; + it[0] = *json; have_control = true; } else if (spa_json_next(json, &val) < 0) break;