diff options
Diffstat (limited to 'apps/mpeg.c')
-rw-r--r-- | apps/mpeg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 713915d5a6..3c37a6b22f 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -1603,7 +1603,8 @@ static void mpeg_thread(void) | |||
1603 | /* Don't read more than until the end of the buffer */ | 1603 | /* Don't read more than until the end of the buffer */ |
1604 | amount_to_read = MIN(audiobuflen - audiobuf_write, | 1604 | amount_to_read = MIN(audiobuflen - audiobuf_write, |
1605 | amount_to_read); | 1605 | amount_to_read); |
1606 | #ifdef HAVE_MMC /* MMC is slow, so don't read too large chunks */ | 1606 | #if (CONFIG_STORAGE & STORAGE_MMC) |
1607 | /* MMC is slow, so don't read too large chunks */ | ||
1607 | amount_to_read = MIN(0x40000, amount_to_read); | 1608 | amount_to_read = MIN(0x40000, amount_to_read); |
1608 | #elif MEM == 8 | 1609 | #elif MEM == 8 |
1609 | amount_to_read = MIN(0x100000, amount_to_read); | 1610 | amount_to_read = MIN(0x100000, amount_to_read); |
@@ -1912,7 +1913,8 @@ static void mpeg_thread(void) | |||
1912 | 1913 | ||
1913 | amount_to_save = MIN(amount_to_save, | 1914 | amount_to_save = MIN(amount_to_save, |
1914 | audiobuflen - audiobuf_read); | 1915 | audiobuflen - audiobuf_read); |
1915 | #ifdef HAVE_MMC /* MMC is slow, so don't save too large chunks at once */ | 1916 | #if (CONFIG_STORAGE & STORAGE_MMC) |
1917 | /* MMC is slow, so don't save too large chunks at once */ | ||
1916 | amount_to_save = MIN(0x40000, amount_to_save); | 1918 | amount_to_save = MIN(0x40000, amount_to_save); |
1917 | #elif MEM == 8 | 1919 | #elif MEM == 8 |
1918 | amount_to_save = MIN(0x100000, amount_to_save); | 1920 | amount_to_save = MIN(0x100000, amount_to_save); |