summaryrefslogtreecommitdiffstats
path: root/apps/buffering.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-08-30 22:35:32 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-08-30 22:35:32 +0000
commit9c00d1a643942c1729f01fb5609d7b00204b54bd (patch)
treeda19d62fef547b987a28485e9e04699f7e31ab73 /apps/buffering.c
parentce0d2b1d4746bb9e2dd23bedeb55c9a684edae75 (diff)
downloadrockbox-9c00d1a643942c1729f01fb5609d7b00204b54bd.tar.gz
rockbox-9c00d1a643942c1729f01fb5609d7b00204b54bd.tar.bz2
rockbox-9c00d1a643942c1729f01fb5609d7b00204b54bd.zip
Fix FS#11586. Corrects rebuffering behaviour which did not allow to play several m4a files. Thanks to Magnus Holmgren.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index f1073b31cc..46b6455178 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -779,7 +779,7 @@ static void rebuffer_handle(int handle_id, size_t newpos)
{
LOGFQUEUE("buffering >| Q_BUFFER_HANDLE %d", handle_id);
queue_send(&buffering_queue, Q_BUFFER_HANDLE, handle_id);
- h->ridx = h->data + newpos;
+ h->ridx = ringbuf_add(h->data, newpos - h->offset);
return;
}