forked from len0rd/rockbox
No functional change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15542 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b50473ffd8
commit
dc0f497a4f
1 changed files with 3 additions and 3 deletions
|
|
@ -974,8 +974,8 @@ int bufadvance(int handle_id, off_t offset)
|
||||||
* actual amount of data available for reading. This function explicitly
|
* actual amount of data available for reading. This function explicitly
|
||||||
* does not check the validity of the input handle. It does do range checks
|
* does not check the validity of the input handle. It does do range checks
|
||||||
* on size and returns a valid (and explicit) amount of data for reading */
|
* on size and returns a valid (and explicit) amount of data for reading */
|
||||||
static struct memory_handle *prep_bufdata(int handle_id, size_t *size,
|
static struct memory_handle *prep_bufdata(const int handle_id, size_t *size,
|
||||||
bool guardbuf_limit)
|
const bool guardbuf_limit)
|
||||||
{
|
{
|
||||||
struct memory_handle *h = find_handle(handle_id);
|
struct memory_handle *h = find_handle(handle_id);
|
||||||
if (!h)
|
if (!h)
|
||||||
|
|
@ -1005,7 +1005,7 @@ static struct memory_handle *prep_bufdata(int handle_id, size_t *size,
|
||||||
if (h->filerem > 0 && avail < *size)
|
if (h->filerem > 0 && avail < *size)
|
||||||
{
|
{
|
||||||
/* Data isn't ready. Request buffering */
|
/* Data isn't ready. Request buffering */
|
||||||
buf_request_buffer_handle(h->id);
|
buf_request_buffer_handle(handle_id);
|
||||||
/* Wait for the data to be ready */
|
/* Wait for the data to be ready */
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue