mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
spa: alsa: fix some coverity warnings
NULL checks. Change pa_x* malloc functions act like the pulseaudio ones: assert on failure, as code assumes that.
This commit is contained in:
parent
7f2bdab8ea
commit
3539374ba7
4 changed files with 30 additions and 15 deletions
|
|
@ -1741,7 +1741,7 @@ int pa_alsa_ucm_set_profile(pa_alsa_ucm_config *ucm, pa_card *card, pa_alsa_prof
|
|||
ret = -1;
|
||||
}
|
||||
|
||||
} else if (ucm->active_verb) {
|
||||
} else if (ucm->active_verb && old_profile) {
|
||||
/* Disable modifiers not in new profile. Has to be done before
|
||||
* devices, because _dismod fails if a modifier's supported
|
||||
* devices are disabled. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue