mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Don't enumerate invalid profile
This commit is contained in:
parent
f03a7e43db
commit
c560aea4c9
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue