mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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:
parent
9821cce484
commit
3eed6fc025
1 changed files with 2 additions and 2 deletions
|
@ -982,8 +982,8 @@ static size_t prep_bufdata(const struct memory_handle *h, size_t size)
|
||||||
/* File is finished reading */
|
/* File is finished reading */
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (size == 0 || size > h->available + h->filerem)
|
if (size == 0 || size > avail + h->filerem)
|
||||||
size = h->available + h->filerem;
|
size = avail + h->filerem;
|
||||||
|
|
||||||
if (h->type == TYPE_PACKET_AUDIO && size > BUFFERING_DEFAULT_FILECHUNK)
|
if (h->type == TYPE_PACKET_AUDIO && size > BUFFERING_DEFAULT_FILECHUNK)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue