mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
actually close the alsa device before we try to reopen it as plughw
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1854 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
4ed41f3dab
commit
08d4b237a3
1 changed files with 3 additions and 0 deletions
|
|
@ -759,6 +759,9 @@ int pa__init(pa_module*m) {
|
|||
pa_log_debug("Opening the device as '%s' didn't work, retrying with '%s'.", dev, d);
|
||||
pa_xfree(dev);
|
||||
dev = d;
|
||||
|
||||
snd_pcm_close(u->pcm_handle);
|
||||
u->pcm_handle = NULL;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue