summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/alsa/alsa-util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c
index a4301f42..feaeb31b 100644
--- a/src/modules/alsa/alsa-util.c
+++ b/src/modules/alsa/alsa-util.c
@@ -880,8 +880,9 @@ int pa_alsa_probe_profiles(
if (pcm_j)
snd_pcm_close(pcm_j);
- cb(i->alsa_name ? i : NULL,
- j->alsa_name ? j : NULL, userdata);
+ if (i->alsa_name || j->alsa_name)
+ cb(i->alsa_name ? i : NULL,
+ j->alsa_name ? j : NULL, userdata);
}
if (pcm_i)