mixer-ui-device: Make debug for port available useful

The debug output would print the same value twice, instead of showing
the before and after values when setting the property.
This commit is contained in:
Bastien Nocera 2024-02-04 00:02:38 +01:00
parent c72e46fc44
commit 20b130c17f

View File

@ -162,9 +162,9 @@ gvc_mixer_ui_device_set_property (GObject *object,
self->priv->type == UIDeviceInput ? "input" : "output"); self->priv->type == UIDeviceInput ? "input" : "output");
break; break;
case PROP_PORT_AVAILABLE: case PROP_PORT_AVAILABLE:
self->priv->port_available = g_value_get_boolean (value); g_debug ("gvc-mixer-output-set-property - old port available %i, value passed in %i",
g_debug ("gvc-mixer-output-set-property - port available %i, value passed in %i",
self->priv->port_available, g_value_get_boolean (value)); self->priv->port_available, g_value_get_boolean (value));
self->priv->port_available = g_value_get_boolean (value);
break; break;
case PROP_ICON_NAME: case PROP_ICON_NAME:
gvc_mixer_ui_device_set_icon_name (self, g_value_get_string (value)); gvc_mixer_ui_device_set_icon_name (self, g_value_get_string (value));