diff options
author | 2008-12-10 02:47:38 +0200 | |
---|---|---|
committer | 2008-12-10 02:54:01 +0200 | |
commit | f01f7f6259badb2725be49af914d8db52e025cf6 (patch) | |
tree | 0d9545588f4601bab9b3968e01073809cfc214b4 /mp3lib/dct36_3dnow.c | |
parent | 6fa90873ccc8006e479061afdd0edfbfdadf17ec (diff) |
ao_alsa: Sanity check get_space() return values better
Sometimes after seek audio reset I see snd_pcm_status_get_avail()
return huge values. get_space() already had a check againt the value
being larger than the whole buffer; however since the unsigned value
from the ALSA function had been cast to signed by that point it was
interpreted as negative and the check didn't trigger. Use unsigned
instead to make the check reliable and ensure the return value is sane.
Diffstat (limited to 'mp3lib/dct36_3dnow.c')
0 files changed, 0 insertions, 0 deletions