mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fixed compilation problem for dmix (donot_close)
This commit is contained in:
parent
13b79dcd56
commit
b5316c86cc
2 changed files with 2 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ int snd_pcm_close(snd_pcm_t *pcm)
|
|||
{
|
||||
int err;
|
||||
assert(pcm);
|
||||
if (pcm->setup) {
|
||||
if (pcm->setup && !pcm->donot_close) {
|
||||
snd_pcm_drop(pcm);
|
||||
err = snd_pcm_hw_free(pcm);
|
||||
if (err < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue