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:
Lennart Poettering 2007-09-18 12:53:42 +00:00
parent 4ed41f3dab
commit 08d4b237a3

View file

@ -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_log_debug("Opening the device as '%s' didn't work, retrying with '%s'.", dev, d);
pa_xfree(dev); pa_xfree(dev);
dev = d; dev = d;
snd_pcm_close(u->pcm_handle);
u->pcm_handle = NULL;
continue; continue;
} }
} }