diff options
author | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-27 13:39:21 +0000 |
---|---|---|
committer | Miika Pekkarinen <miipekk@ihme.org> | 2005-06-27 13:39:21 +0000 |
commit | da6ed622202a2000180c7396e448eff09fe811bd (patch) | |
tree | c5f2ad903c3621437782eccd34e173493c95c489 /firmware | |
parent | 4e6daf8f60529b447f0fbdc18e707ec91515ee1f (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.c | 2 |
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) |