mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
filter-chain: fix config parse
We need to advance to the next item.
This commit is contained in:
parent
978c50e86c
commit
2dfc41766f
1 changed files with 4 additions and 2 deletions
|
|
@ -1431,6 +1431,8 @@ static int load_node(struct graph *graph, struct spa_json *json)
|
||||||
} else if (spa_streq("config", key)) {
|
} else if (spa_streq("config", key)) {
|
||||||
config = SPA_JSON_SAVE(json);
|
config = SPA_JSON_SAVE(json);
|
||||||
have_config = true;
|
have_config = true;
|
||||||
|
if (spa_json_next(json, &val) < 0)
|
||||||
|
break;
|
||||||
} else if (spa_json_next(json, &val) < 0)
|
} else if (spa_json_next(json, &val) < 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -1657,8 +1659,8 @@ static int setup_graph(struct graph *graph, struct spa_json *inputs, struct spa_
|
||||||
for (i = 0; i < n_hndl; i++) {
|
for (i = 0; i < n_hndl; i++) {
|
||||||
pw_log_info("instantiate %s %d", d->name, i);
|
pw_log_info("instantiate %s %d", d->name, i);
|
||||||
if ((node->hndl[i] = d->instantiate(d, &impl->rate, i, node->config)) == NULL) {
|
if ((node->hndl[i] = d->instantiate(d, &impl->rate, i, node->config)) == NULL) {
|
||||||
pw_log_error("cannot create plugin instance");
|
pw_log_error("cannot create plugin instance: %m");
|
||||||
res = -ENOMEM;
|
res = -errno;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
node->n_hndl = i + 1;
|
node->n_hndl = i + 1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue