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_id() calls
Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
parent
41039b49ad
commit
796b48c0d2
7 changed files with 18 additions and 9 deletions
|
|
@ -2578,8 +2578,8 @@ static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
|
|||
#endif
|
||||
if (snd_config_get_type(pcm_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
||||
char *val;
|
||||
id = NULL;
|
||||
snd_config_get_id(pcm_conf, &id);
|
||||
if (snd_config_get_id(pcm_conf, &id) < 0)
|
||||
id = NULL;
|
||||
val = NULL;
|
||||
snd_config_get_ascii(pcm_conf, &val);
|
||||
snd_error(PCM, "Invalid type for PCM %s%sdefinition (id: %s, value: %s)", name ? name : "", name ? " " : "", id, val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue