1
0
Fork 0
forked from len0rd/rockbox

When seeking foward off of the buffer, if it is a short seek don't rebuffer the whole track, just read enough to satisfy

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15479 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2007-11-05 17:50:51 +00:00
parent 3379440a4b
commit 76f9bfa945

View file

@ -650,6 +650,14 @@ static void rebuffer_handle(int handle_id, size_t newpos)
if (!h)
return;
if (newpos > h->offset && newpos - h->offset < BUFFERING_DEFAULT_FILECHUNK)
{
LOGFQUEUE("buffering >| Q_BUFFER_HANDLE");
queue_send(&buffering_queue, Q_BUFFER_HANDLE, handle_id);
h->ridx = h->data + newpos;
return;
}
h->offset = newpos;
LOGFQUEUE("buffering >| Q_RESET_HANDLE");