mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-18 22:05:17 -05:00
add missing return value changes for snd_config_get_string() calls
Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
parent
796b48c0d2
commit
a9465869a7
4 changed files with 15 additions and 4 deletions
|
|
@ -1753,7 +1753,9 @@ int _snd_pcm_ladspa_open(snd_pcm_t **pcmp, const char *name,
|
|||
continue;
|
||||
}
|
||||
if (strcmp(id, "path") == 0) {
|
||||
snd_config_get_string(n, &path);
|
||||
err = snd_config_get_string(n, &path);
|
||||
if (err < 0)
|
||||
return err;
|
||||
continue;
|
||||
}
|
||||
if (strcmp(id, "channels") == 0) {
|
||||
|
|
|
|||
|
|
@ -1561,7 +1561,12 @@ int snd_pcm_rate_open(snd_pcm_t **pcmp, const char *name,
|
|||
continue;
|
||||
if (strcmp(id, "name") != 0)
|
||||
continue;
|
||||
snd_config_get_string(n, &type);
|
||||
err = snd_config_get_string(n, &type);
|
||||
if (err < 0) {
|
||||
snd_pcm_free(pcm);
|
||||
free(rate);
|
||||
return err;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (!type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue