Opened 5 years ago
Closed 5 years ago
#2224 closed defect (fixed)
De-Initialize ALSA sound device with snd_pcm_drop() instead of snd_pcm_drain() to avoid stuck issue
Reported by: | riza | Owned by: | riza |
---|---|---|---|
Priority: | normal | Milestone: | release-2.10 |
Component: | pjmedia-audiodev | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: | no |
Description
When using the conference bridge to play a wave file while having ALSA and not the null dev as default capture device, but not reading anything from ALSA, it's observable that the library started to stop responding after the remote caller disconnected.
This was due to the capture-thread waiting forever on snd_pcm_drain() and not returning, and thereby a worker-thread calling alsa_stream_stop() waiting forever on pj_thread_join(stream->ca_thread).
Thanks to Dominik Schmidt for the patch.
Change History (1)
comment:1 Changed 5 years ago by riza
- Owner set to riza
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
In 6057: