mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fix device name listing with card = -1
Fixed the device name listing with card = -1, such as aplay -L.
This commit is contained in:
parent
9df5c28f55
commit
10e3360575
1 changed files with 1 additions and 2 deletions
|
|
@ -527,8 +527,7 @@ int snd_device_name_hint(int card, const char *iface, char ***hints)
|
|||
if (card >= 0) {
|
||||
err = add_card(&list, card);
|
||||
} else {
|
||||
err = get_card_name(&list, card);
|
||||
err = err >= 0 ? snd_card_next(&card) : err;
|
||||
err = snd_card_next(&card);
|
||||
if (err < 0)
|
||||
goto __error;
|
||||
while (card >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue