summaryrefslogtreecommitdiff
path: root/apps/mpeg.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-01-26 19:14:47 +0100
committerThomas Martitz <kugel@rockbox.org>2014-01-26 19:14:47 +0100
commit543027564cc72ba3effa8d7b00f380b6dafd8494 (patch)
treeb40fd12e8d3cace2c0e687fc4b7898f97765c38c /apps/mpeg.c
parent9892b39567d9a0e27ea530d36c1b8decb3489b4a (diff)
downloadrockbox-543027564cc72ba3effa8d7b00f380b6dafd8494.tar.gz
rockbox-543027564cc72ba3effa8d7b00f380b6dafd8494.zip
hwcodec/talk.c: Give the thumbnail buffer regardless of the talk buffer policy.
When the policy is not set, it'll by default not give the clip buffer away. Callers of core_alloc_maximum() suffer from this. However, the thumbnail buffer can be easily freed when needed because nothing needs to be reloaded from disk when it is reallocated (thumbnail clips are loaded on demand, when in the file browser). Do this to give core_alloc_maximum() callers a better chance to succeed with the default talk buffer policy. Change-Id: I8c0da29c520612ca903f6c930bd7c74ae97eca3b
Diffstat (limited to 'apps/mpeg.c')
-rw-r--r--apps/mpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c
index 08e8e4cf51..bfe3d6d54f 100644
--- a/apps/mpeg.c
+++ b/apps/mpeg.c
@@ -2989,7 +2989,6 @@ void audio_init(void)
2989{ 2989{
2990 mpeg_errno = 0; 2990 mpeg_errno = 0;
2991 2991
2992 talk_init();
2993 audio_reset_buffer(); 2992 audio_reset_buffer();
2994 2993
2995#ifndef SIMULATOR 2994#ifndef SIMULATOR
@@ -3009,6 +3008,8 @@ void audio_init(void)
3009 or_b(0x08, &PADRH); 3008 or_b(0x08, &PADRH);
3010#endif /* CONFIG_CODEC == MAS3587F */ 3009#endif /* CONFIG_CODEC == MAS3587F */
3011 3010
3011 talk_init();
3012
3012#ifdef DEBUG 3013#ifdef DEBUG
3013#ifndef SIMULATOR 3014#ifndef SIMULATOR
3014 dbg_timer_start(); 3015 dbg_timer_start();