mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
pcm direct plugins: drain() call might be blocked when threads are used
Add SETUP state checks and do modifications according latest ALSA driver (passing wrong event identification). ALSA bug#4914 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
7fd0d9f423
commit
b9dbee694a
5 changed files with 20 additions and 14 deletions
|
|
@ -142,10 +142,9 @@ struct snd_pcm_direct {
|
|||
int hw_fd; /* hardware file descriptor */
|
||||
struct pollfd timer_fd;
|
||||
int poll_fd;
|
||||
int tread;
|
||||
int timer_need_poll;
|
||||
unsigned int timer_event_suspend;
|
||||
unsigned int timer_event_resume;
|
||||
int tread: 1;
|
||||
int timer_need_poll: 1;
|
||||
unsigned int timer_events;
|
||||
int server_fd;
|
||||
pid_t server_pid;
|
||||
snd_timer_t *timer; /* timer used as poll_fd */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue