From 3eed6fc0251eb5cdce4eda39e036df76838fa60e Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Tue, 6 Nov 2007 16:57:07 +0000 Subject: [PATCH] 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 --- apps/buffering.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/buffering.c b/apps/buffering.c index 5fd8c24122..ecca3872f8 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -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) {