mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
filter-chain: use dynamic builder for param update
This commit is contained in:
parent
8646117374
commit
2125ec048d
1 changed files with 4 additions and 3 deletions
|
|
@ -524,13 +524,14 @@ static void param_props_changed(struct impl *impl, const struct spa_pod *param)
|
|||
}
|
||||
if (changed > 0) {
|
||||
uint8_t buffer[1024];
|
||||
struct spa_pod_builder b;
|
||||
struct spa_pod_dynamic_builder b;
|
||||
const struct spa_pod *params[1];
|
||||
|
||||
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||
params[0] = get_props_param(graph, &b);
|
||||
spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
|
||||
params[0] = get_props_param(graph, &b.b);
|
||||
|
||||
pw_stream_update_params(impl->capture, params, 1);
|
||||
spa_pod_dynamic_builder_clean(&b);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue