Leave a gap between all handles because ringbuf_add_cross interprets equal pointers...
commitea84e0fe4edaa4eaf79d214c4199fd064c58f2db
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Mon, 14 Feb 2011 02:14:26 +0000 (14 02:14 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Mon, 14 Feb 2011 02:14:26 +0000 (14 02:14 +0000)
treeba935ef9d2a346e8391752c4b3be3b647356b430
parentab1dfac89b24cc4c8d13a3089c062b2a9ff81cd5
Leave a gap between all handles because ringbuf_add_cross interprets equal pointers as empty, corruption guard check could fail to detect overlap if buffering ran right up to the next handle and it gets asked to buffer again before freeing the following handles (adds a byte on average). Storage alignment on handle reset must at times avoid alignment increments if after a stopped rebuffer, the handle was shrunk too close to the next one or the reading position in a prior rebuffer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29302 a1c6a512-1295-4272-9138-f99709370657
apps/buffering.c