mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 00:40:34 +00: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
|
@ -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…
Reference in a new issue