summaryrefslogtreecommitdiffstats
path: root/apps/codecs/lib/codeclib.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-10-19 12:35:53 +0000
committerNils Wallménius <nils@rockbox.org>2008-10-19 12:35:53 +0000
commit2f50cd58b9fb7cd75448622b5ac222cdcad6bc6f (patch)
tree880a25472bfa6ce2fcda13a334c17607aa1ad419 /apps/codecs/lib/codeclib.c
parent01177055425776fadbdd6cf167111105b118754a (diff)
downloadrockbox-2f50cd58b9fb7cd75448622b5ac222cdcad6bc6f.tar.gz
rockbox-2f50cd58b9fb7cd75448622b5ac222cdcad6bc6f.zip
Codec memory reorganization
Based on a patch by Tomasz Malesinski * Merge Codec buffer and Malloc buffer into one large buffer. * The new merged buffer is now 1MB on targets with lots of memory. * Renamed codec_get_memory to codec_get_buffer and made it behave more. like plugin_get_buffer. * Bumped Codec api and min api versions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18834 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/codeclib.c')
-rw-r--r--apps/codecs/lib/codeclib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c
index e537995db9..6e11eb1aa1 100644
--- a/apps/codecs/lib/codeclib.c
+++ b/apps/codecs/lib/codeclib.c
@@ -36,7 +36,7 @@ unsigned char* filebuf; // The rest of the MP3 buffer
int codec_init(void)
{
mem_ptr = 0;
- mallocbuf = (unsigned char *)ci->get_codec_memory((size_t *)&bufsize);
+ mallocbuf = (unsigned char *)ci->codec_get_buffer((size_t *)&bufsize);
return 0;
}