From: Jaroslav Kysela Date: Thu, 30 Nov 2006 12:45:08 +0000 (+0100) Subject: aplay: namehint fix - use filter before printing device name X-Git-Tag: v1.0.14rc1~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=815fc4bea040be1950684d6744ec0fe32d15e7b3;p=alsa-utils.git aplay: namehint fix - use filter before printing device name --- diff --git a/aplay/aplay.c b/aplay/aplay.c index e9e0df2..f207ffe 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -274,9 +274,9 @@ static void pcm_list(void) name = snd_device_name_get_hint(*n, "NAME"); descr = snd_device_name_get_hint(*n, "DESC"); io = snd_device_name_get_hint(*n, "IOID"); - printf("%s\n", name); if (io != NULL && strcmp(io, filter) == 0) goto __end; + printf("%s\n", name); if ((descr1 = descr) != NULL) { printf(" "); while (*descr1) {