Fix thinko in last patch, shouldn't effect current buffering clients.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15496 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2007-11-06 16:57:07 +00:00
parent 9821cce484
commit 3eed6fc025

View file

@ -982,8 +982,8 @@ static size_t prep_bufdata(const struct memory_handle *h, size_t size)
/* File is finished reading */
return 0;
if (size == 0 || size > h->available + h->filerem)
size = h->available + h->filerem;
if (size == 0 || size > avail + h->filerem)
size = avail + h->filerem;
if (h->type == TYPE_PACKET_AUDIO && size > BUFFERING_DEFAULT_FILECHUNK)
{