mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
stream: set param id
The param id in the object is used to filter on the server so make sure it is set in the object correctly.
This commit is contained in:
parent
cb1071bce7
commit
087448ff0f
1 changed files with 2 additions and 1 deletions
|
|
@ -167,6 +167,7 @@ static struct param *add_param(struct stream *impl,
|
|||
p->id = id;
|
||||
p->param = SPA_MEMBER(p, sizeof(struct param), struct spa_pod);
|
||||
memcpy(p->param, param, SPA_POD_SIZE(param));
|
||||
SPA_POD_OBJECT_ID(p->param) = id;
|
||||
|
||||
spa_list_append(&impl->param_list, &p->link);
|
||||
|
||||
|
|
@ -492,7 +493,7 @@ static int impl_port_enum_params(void *object, int seq,
|
|||
result.index = result.next++;
|
||||
|
||||
param = p->param;
|
||||
if (param == NULL || !spa_pod_is_object_id(param, id))
|
||||
if (param == NULL || p->id != id)
|
||||
continue;
|
||||
|
||||
spa_pod_builder_init(&b, buffer, sizeof(buffer));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue