mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
filter-graph: pass spa_pod in get_props
This commit is contained in:
parent
094a45a6f7
commit
9f9e962dd6
3 changed files with 19 additions and 11 deletions
|
|
@ -1153,7 +1153,7 @@ static int setup_streams(struct impl *impl)
|
|||
for (i = 0;; i++) {
|
||||
if ((offs = pw_array_add(&offsets, sizeof(uint32_t))) != NULL)
|
||||
*offs = b.b.state.offset;
|
||||
if (spa_filter_graph_enum_prop_info(graph, i, &b.b) != 1)
|
||||
if (spa_filter_graph_enum_prop_info(graph, i, &b.b, NULL) != 1)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1251,7 +1251,7 @@ static void graph_props_changed(void *object, enum spa_direction direction)
|
|||
const struct spa_pod *params[1];
|
||||
|
||||
spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
|
||||
spa_filter_graph_get_props(graph, &b.b, ¶ms[0]);
|
||||
spa_filter_graph_get_props(graph, &b.b, (struct spa_pod **)¶ms[0]);
|
||||
|
||||
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