diff options
author | Brandon Low <lostlogic@rockbox.org> | 2007-11-28 16:39:58 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-28 16:39:58 +0000 |
commit | e959c5aa95baf1f865ee141f08448f4748b05b4c (patch) | |
tree | 1485ebd40e1b487fb202d9b5ad801a05b05ad53f | |
parent | 3e7f02e00789949e568b9c3f76cd97eb81ae1272 (diff) | |
download | rockbox-e959c5aa95baf1f865ee141f08448f4748b05b4c.tar.gz rockbox-e959c5aa95baf1f865ee141f08448f4748b05b4c.zip |
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
-rw-r--r-- | apps/buffering.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
1187 | h->available -= size; | 1187 | h->available -= size; |
1188 | h->filesize -= size; | 1188 | h->filesize -= size; |
1189 | h->widx = RINGBUF_SUB(h->widx, size); | 1189 | h->widx = RINGBUF_SUB(h->widx, size); |
1190 | if (h == cur_handle) { | ||
1191 | buf_widx = h->widx; | ||
1192 | } | ||
1190 | return size; | 1193 | return size; |
1191 | } | 1194 | } |
1192 | 1195 | ||