]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: handle start_treshold in snd_pcm_write_areas more robustly
authorJaroslav Kysela <perex@perex.cz>
Tue, 2 Jan 2024 10:16:26 +0000 (11:16 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 2 Jan 2024 10:20:05 +0000 (11:20 +0100)
commitc3fec78dddc09d82cbceb0dfa1d09d25f05aa92d
treedc0da9d174e4b1d915103d7348eb6d570625204f
parent19e63491821d755e491fe0e6d579bac455c3e8a5
pcm: handle start_treshold in snd_pcm_write_areas more robustly

The start_treshold is defined as unsigned, so fix the condition
to allow using values avobe LONG_MAX.

Also, fix the documentation for the 64-bit platforms (INTMAX -> LONG_MAX).

Fixes: https://github.com/alsa-project/alsa-lib/issues/374
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm.c