forked from len0rd/rockbox
Limit read chunk size for MMC to 256 KB. Fixes playback problems for high-bitrate files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5235 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d885a2690a
commit
5ae37f0ddb
1 changed files with 3 additions and 0 deletions
|
|
@ -1482,6 +1482,9 @@ static void mpeg_thread(void)
|
|||
#if MEM == 8
|
||||
amount_to_read = MIN(0x100000, amount_to_read);
|
||||
#endif /* #if MEM == 8 */
|
||||
#ifdef HAVE_MMC /* MMC is slow, so don't read too large chunks */
|
||||
amount_to_read = MIN(0x40000, amount_to_read);
|
||||
#endif
|
||||
|
||||
/* Read as much mpeg data as we can fit in the buffer */
|
||||
if(mpeg_file >= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue