mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
media-session: remove default node from properties
When we remove a default node, remove it from the properties and trigger a save of the state so that the configured default is also actually removed from the state file.
This commit is contained in:
parent
f4b0cf2758
commit
7071562334
1 changed files with 1 additions and 0 deletions
|
|
@ -194,6 +194,7 @@ static int metadata_property(void *object, uint32_t subject,
|
|||
|
||||
if (value == NULL) {
|
||||
def->value = SPA_ID_INVALID;
|
||||
changed += pw_properties_set(impl->properties, key, NULL);
|
||||
} else {
|
||||
if (json_object_find(value, "name", name, sizeof(name)) < 0)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue