]> git.alsa-project.org Git - alsa-lib.git/commit
fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode
authorsylvain.bertrand@gmail.com <sylvain.bertrand@gmail.com>
Tue, 28 Apr 2020 12:09:18 +0000 (12:09 +0000)
committerJaroslav Kysela <perex@perex.cz>
Thu, 30 Apr 2020 12:25:10 +0000 (14:25 +0200)
commit29041c522071172af2c6bf086b3a0c19510a6660
tree729847c238b8c251443c1a75f66b3bcc232dcaa7
parent496e239e65ecdab94358281b3b1346634a1476ef
fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode

The draining function of the rate plugin does not handle properly the
SND_PCM_NONBLOCK case. It can write data to the slave plugin each time the
function is called, but does not update its internal state in order to
reach a stopping condition. Use a last_commit_ptr workaround to reach such
condition.

Signed-off-by: Sylvain BERTRAND <sylvain.bertrand@legeek.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_rate.c