[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] alsa-ucm: use the right profile name
Arun Raghavan
gitlab at gitlab.freedesktop.org
Wed Mar 25 15:47:59 UTC 2020
Arun Raghavan pushed to branch master at PulseAudio / pulseaudio
Commits:
4dc73f51 by Wim Taymans at 2020-03-25T16:35:53+01:00
alsa-ucm: use the right profile name
Use the right profile name or else we could pass NULL to
pa_hashmap_get() and crash.
- - - - -
1 changed file:
- src/modules/alsa/alsa-ucm.c
Changes:
=====================================
src/modules/alsa/alsa-ucm.c
=====================================
@@ -1315,7 +1315,7 @@ int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, const char *
/* select volume controls on ports */
PA_HASHMAP_FOREACH(port, card->ports, state) {
data = PA_DEVICE_PORT_DATA(port);
- data->path = pa_hashmap_get(data->paths, new_profile);
+ data->path = pa_hashmap_get(data->paths, profile);
}
return ret;
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4dc73f5167f7d4c2cf1d3e9c8bb7c796f3a35a4e
--
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4dc73f5167f7d4c2cf1d3e9c8bb7c796f3a35a4e
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20200325/a751fae5/attachment.htm>
More information about the pulseaudio-commits
mailing list