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/mpeg.c | |
parent | d885a2690a07f1e9503dd9f4a292f187f52467c2 (diff) |
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/mpeg.c')
-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) #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) |