mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
metadata: Added context monitor for removed globals
impl-metadata would not monitor for globals being removed. This would cause stale metadata to remain in the store, causing future objects on the same ids to have invalid data.
This commit is contained in:
parent
17e6a0709b
commit
8f59508ecb
3 changed files with 21 additions and 1 deletions
|
|
@ -210,6 +210,8 @@ static const struct pw_global_events global_events = {
|
|||
static void context_global_removed(void *data, struct pw_global *global)
|
||||
{
|
||||
struct impl *impl = data;
|
||||
pw_log_trace("Clearing properties for global %u in %u",
|
||||
pw_global_get_id(global), pw_global_get_id(impl->global));
|
||||
pw_metadata_set_property(impl->metadata,
|
||||
pw_global_get_id(global), NULL, NULL, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue