1
0
Fork 0
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:
Jens Arnold 2004-10-09 12:42:56 +00:00
parent d885a2690a
commit 5ae37f0ddb

View file

@ -1482,6 +1482,9 @@ static void mpeg_thread(void)
#if MEM == 8 #if MEM == 8
amount_to_read = MIN(0x100000, amount_to_read); amount_to_read = MIN(0x100000, amount_to_read);
#endif /* #if MEM == 8 */ #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 */ /* Read as much mpeg data as we can fit in the buffer */
if(mpeg_file >= 0) if(mpeg_file >= 0)