]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: fix the CPU busy loop in the pause handler
authorJaroslav Kysela <perex@perex.cz>
Sun, 8 Nov 2020 18:11:12 +0000 (19:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 8 Nov 2020 18:11:22 +0000 (19:11 +0100)
commitc1b92db5ef01311e5fc983f3134caa00826d0c2d
treeb0e22815fc8244bba1a6d9852ef3f060fd1c1367
parent986a1bd3d2eebd41a2925969826fca870b2cd330
aplay: fix the CPU busy loop in the pause handler

Use the standard poll mechanism to ensure that there's
something in the input to avoid busy loop on the file
descriptor with the non-block mode set.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c