aplay: namehint fix - use filter before printing device name

This commit is contained in:
Jaroslav Kysela 2006-11-30 13:45:08 +01:00
parent a6f9df06af
commit 815fc4bea0

View file

@ -274,9 +274,9 @@ static void pcm_list(void)
name = snd_device_name_get_hint(*n, "NAME"); name = snd_device_name_get_hint(*n, "NAME");
descr = snd_device_name_get_hint(*n, "DESC"); descr = snd_device_name_get_hint(*n, "DESC");
io = snd_device_name_get_hint(*n, "IOID"); io = snd_device_name_get_hint(*n, "IOID");
printf("%s\n", name);
if (io != NULL && strcmp(io, filter) == 0) if (io != NULL && strcmp(io, filter) == 0)
goto __end; goto __end;
printf("%s\n", name);
if ((descr1 = descr) != NULL) { if ((descr1 = descr) != NULL) {
printf(" "); printf(" ");
while (*descr1) { while (*descr1) {