summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-06-27 13:39:21 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-06-27 13:39:21 +0000
commitda6ed622202a2000180c7396e448eff09fe811bd (patch)
treec5f2ad903c3621437782eccd34e173493c95c489 /firmware
parent4e6daf8f60529b447f0fbdc18e707ec91515ee1f (diff)
Another crossfade related crash possible fixed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/pcm_playback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index 04a3278d81..89e72c76a0 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -523,7 +523,7 @@ void pcm_flush_buffer(size_t length)
while (length > 0) {
copy_n = MIN(length, PCMBUF_SIZE - (unsigned)audiobuffer_pos);
memcpy(&audiobuffer[audiobuffer_pos], buf, copy_n);
- audiobuffer_fillpos = length;
+ audiobuffer_fillpos = copy_n;
buf += copy_n;
length -= copy_n;
if (length > 0)