]> git.alsa-project.org Git - alsa-utils.git/commit
amidi: fix timeout handling
authorClemens Ladisch <clemens@ladisch.de>
Sat, 13 Aug 2016 14:41:58 +0000 (16:41 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Aug 2016 09:18:58 +0000 (11:18 +0200)
commita6e9a8da9e8c31f625c5cad23680aded4e2cf475
tree70d3c8ade775d7a18ee29a5aef3067f4a411a124
parent04322ca7490c7b5f428fbd04f85a7b9b05de1f84
amidi: fix timeout handling

The timeout is not supposed to expire when ignored messages are
received.  This cannot be handled with the poll() timeout, so add
a separate timer.

Reported-by: Martin Tarenskeen <m.tarenskeen@gmail.com>
Reviewd-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Tested-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
amidi/amidi.c