mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
metadata: handle removed globals in impl
This commit is contained in:
parent
d1b1202592
commit
b2c3ee5d8d
1 changed files with 3 additions and 1 deletions
|
|
@ -382,7 +382,9 @@ static int metadata_resource_property(void *data,
|
||||||
struct pw_resource *resource = d->resource;
|
struct pw_resource *resource = d->resource;
|
||||||
struct pw_impl_client *client = pw_resource_get_client(resource);
|
struct pw_impl_client *client = pw_resource_get_client(resource);
|
||||||
|
|
||||||
if (pw_impl_client_check_permissions(client, subject, PW_PERM_R) >= 0)
|
int res = pw_impl_client_check_permissions(client, subject, PW_PERM_R);
|
||||||
|
if (res >= 0 ||
|
||||||
|
(res == -ENOENT && key == NULL && type == NULL && value == NULL))
|
||||||
pw_metadata_resource_property(d->resource, subject, key, type, value);
|
pw_metadata_resource_property(d->resource, subject, key, type, value);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue