mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -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
|
|
@ -968,7 +968,7 @@ int spa_alsa_init(struct state *state, const struct spa_dict *info)
|
|||
|
||||
snd_config_update_free_global();
|
||||
|
||||
if ((str = spa_dict_lookup(info, "device.profile.pro")) != NULL)
|
||||
if (info && (str = spa_dict_lookup(info, "device.profile.pro")) != NULL)
|
||||
state->is_pro = spa_atob(str);
|
||||
|
||||
state->multi_rate = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue