Close #2224: De-Initialize ALSA sound device with snd_pcm_drop() instead of snd_pcm_drain() to avoid stuck issue

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6057 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Riza Sulistyo 2019-08-28 15:25:13 +00:00
parent 6adec9df42
commit efb3a0bb9f
1 changed files with 2 additions and 2 deletions

View File

@ -533,7 +533,7 @@ static int pb_thread_func (void *arg)
tstamp.u64 += nframes;
}
snd_pcm_drain (pcm);
snd_pcm_drop(pcm);
TRACE_((THIS_FILE, "pb_thread_func: Stopped"));
return PJ_SUCCESS;
}
@ -604,7 +604,7 @@ static int ca_thread_func (void *arg)
tstamp.u64 += nframes;
}
snd_pcm_drain (pcm);
snd_pcm_drop(pcm);
TRACE_((THIS_FILE, "ca_thread_func: Stopped"));
return PJ_SUCCESS;