In the playback buflib shrink callback, ensure a minimum buffer remains for
commitcf01d23d0d940e74ef77f86df328ce9b6411e97a
authorThomas Martitz <kugel@rockbox.org>
Thu, 3 Nov 2011 21:51:46 +0000 (3 21:51 +0000)
committerThomas Martitz <kugel@rockbox.org>
Thu, 3 Nov 2011 21:51:46 +0000 (3 21:51 +0000)
tree480e147a775b05be5745fd4a7f5df970b64b4dd9
parent00c536878e62c85db5556fbd29cb05292f70e94f
In the playback buflib shrink callback, ensure a minimum buffer remains for
audio playback. If it goes below 256K new buflib allocations fail.

This prevents buffer underruns as the new buffer size wasn't actually
checked at all.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30893 a1c6a512-1295-4272-9138-f99709370657
apps/playback.c