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:
parent
2f4b88e9bb
commit
80b285cdb3
1 changed files with 52 additions and 47 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue