diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-11-07 19:30:48 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-11-07 19:30:48 +0000 |
commit | 5dd07759248fec1407f6b3d4d1fb177554e45a13 (patch) | |
tree | 09e94204cf6a0ba2586dba9484f62752271b8248 | |
parent | 50deedc6c76cd94d718d417f1de8de258d704349 (diff) |
Calculation was wrong in pcmbuf_is_same_size such that is would almost certainly return false.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11460 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/pcmbuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c index 5119d20ebd..5152db8bad 100644 --- a/apps/pcmbuf.c +++ b/apps/pcmbuf.c @@ -383,7 +383,8 @@ static void pcmbuf_init_pcmbuffers(void) { bool pcmbuf_is_same_size(size_t bufsize) { /* keep calculations synced with pcmbuf_init */ - bufsize += PCMBUF_MIX_CHUNK * 2 + PCMBUF_DESCS(bufsize); + bufsize += PCMBUF_MIX_CHUNK * 2 + + PCMBUF_DESCS(bufsize)*sizeof(struct pcmbufdesc); return bufsize == (size_t)(pcmbuf_bufend - audiobuffer); } |