1
0
Fork 0
forked from len0rd/rockbox

An attempt to fix the intermittent address error problems

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1420 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-23 15:10:31 +00:00
parent 2f4b88e9bb
commit 80b285cdb3

View file

@ -735,6 +735,11 @@ static void mpeg_thread(void)
/* Tell ourselves that we need to swap some data */
queue_post(&mpeg_queue, MPEG_SWAP_DATA, 0);
/* Make sure that the write pointer is at a word
boundary when we reach the end of the file */
if(len < amount_to_read)
mp3buf_write = (mp3buf_write + 1) & 0xfffffffe;
mp3buf_write += len;
if(mp3buf_write >= mp3buflen)
{