m-default-nodes{-api}: Correct the critical log msg

This commit is contained in:
Ashok Sidipotu
2022-09-06 19:11:29 +05:30
committed by Julian Bouzas
parent 66c63a91a9
commit 8e7611fa9f

View File

@@ -65,8 +65,8 @@ on_metadata_changed (WpMetadata *m, guint32 subject,
g_autoptr (WpSpaJson) json = wp_spa_json_new_from_string (value);
g_autofree gchar *name = NULL;
if (wp_spa_json_object_get (json, "name", "s", &name, NULL)) {
wp_debug_object (m, "'%s' changed from %s -> '%s'", key, name,
self->defaults[i].value);
wp_debug_object (m, "'%s' changed from %s -> '%s'", key,
self->defaults [i].value, name);
g_clear_pointer (&self->defaults[i].value, g_free);
self->defaults[i].value = g_strdup (name);