mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
route: Return NULL in case of zero found channels in determine_chmap
This should fix the problem where the old route syntax can no longer be opened. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
5b72e3d530
commit
d794af65e9
1 changed files with 4 additions and 1 deletions
|
|
@ -883,7 +883,10 @@ static int determine_chmap(snd_config_t *tt, snd_pcm_chmap_t **tt_chmap)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
if (chmap->channels == 0) {
|
||||
free(chmap);
|
||||
chmap = NULL;
|
||||
}
|
||||
*tt_chmap = chmap;
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue