diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-10-09 12:42:56 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-09 12:42:56 +0000 |
commit | 5ae37f0ddbd2b072d61e63529926663a7dad6c47 (patch) | |
tree | 27254223df5fd4ed5b75bb7846bf192ede4ae68d /firmware | |
parent | d885a2690a07f1e9503dd9f4a292f187f52467c2 (diff) | |
download | rockbox-5ae37f0ddbd2b072d61e63529926663a7dad6c47.tar.gz rockbox-5ae37f0ddbd2b072d61e63529926663a7dad6c47.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/mpeg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 85041148f0..3507d2b2f4 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c | |||
@@ -1482,6 +1482,9 @@ static void mpeg_thread(void) | |||
1482 | #if MEM == 8 | 1482 | #if MEM == 8 |
1483 | amount_to_read = MIN(0x100000, amount_to_read); | 1483 | amount_to_read = MIN(0x100000, amount_to_read); |
1484 | #endif /* #if MEM == 8 */ | 1484 | #endif /* #if MEM == 8 */ |
1485 | #ifdef HAVE_MMC /* MMC is slow, so don't read too large chunks */ | ||
1486 | amount_to_read = MIN(0x40000, amount_to_read); | ||
1487 | #endif | ||
1485 | 1488 | ||
1486 | /* Read as much mpeg data as we can fit in the buffer */ | 1489 | /* Read as much mpeg data as we can fit in the buffer */ |
1487 | if(mpeg_file >= 0) | 1490 | if(mpeg_file >= 0) |