Index: apps/buffering.c =================================================================== --- apps/buffering.c (revision 20328) +++ apps/buffering.c (working copy) @@ -702,7 +702,7 @@ { 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; }