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:
Wim Taymans 2021-07-21 17:04:45 +02:00
parent f4b0cf2758
commit 7071562334

View file

@ -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;