From 9c00d1a643942c1729f01fb5609d7b00204b54bd Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Mon, 30 Aug 2010 22:35:32 +0000 Subject: [PATCH] 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 --- apps/buffering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }