gvc-mixer-ui-device: Do not deref NULL pointer

This commit is contained in:
Kai Lüke 2021-01-04 22:03:16 +01:00
parent 7a621180b4
commit 1949be7266

View File

@ -557,6 +557,11 @@ gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device)
}
profile = gvc_mixer_card_get_profile (device->priv->card);
if (profile == NULL) {
g_debug ("Device has no assigned profile");
return NULL;
}
return gvc_mixer_ui_device_get_matching_profile (device, profile->profile);
}