From e959c5aa95baf1f865ee141f08448f4748b05b4c Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Wed, 28 Nov 2007 16:39:58 +0000 Subject: Possibly save a few bytes when stripping the tags of the last allocated handle git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15844 a1c6a512-1295-4272-9138-f99709370657 --- apps/buffering.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/buffering.c b/apps/buffering.c index f5bc2eeb19..1567a6ea91 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1187,6 +1187,9 @@ ssize_t bufcuttail(int handle_id, size_t size) h->available -= size; h->filesize -= size; h->widx = RINGBUF_SUB(h->widx, size); + if (h == cur_handle) { + buf_widx = h->widx; + } return size; } -- cgit v1.2.3