summaryrefslogtreecommitdiff
path: root/apps/codecs.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2014-04-09 09:00:36 +0200
committerThomas Martitz <kugel@rockbox.org>2014-04-09 09:04:10 +0200
commit957613420e9c4906e8bb8ac685e10fc0c24329b8 (patch)
tree810061339f17dbe30759fc0acc7d04070ce2ed40 /apps/codecs.c
parent924a3c48d2b1a807bd7cd3b4b1e042fd2e3d7d06 (diff)
downloadrockbox-957613420e9c4906e8bb8ac685e10fc0c24329b8.tar.gz
rockbox-957613420e9c4906e8bb8ac685e10fc0c24329b8.zip
plugins: Add plugin_release_audio_buffer().
Some plugins grab the whole audio buffer and still want to start playback somehow (e.g. random_folder_advance_config). Since 22e802e the plugin buffer is allocated via buflib and has to be released explicitely. For these plugins the automatic free on exit is not sufficient and they need an API function for that. Fixes OOM panic on random_folder_advance_config when using start shuffled playback. Change-Id: I0d351daa782cb829f4ff80d34c05f40a2e0c142f
Diffstat (limited to 'apps/codecs.c')
-rw-r--r--apps/codecs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 18022d9df3..e84cdf88aa 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -71,8 +71,6 @@ extern unsigned char codecbuf[];
71 71
72static size_t codec_size; 72static size_t codec_size;
73 73
74extern void* plugin_get_audio_buffer(size_t *buffer_size);
75
76struct codec_api ci = { 74struct codec_api ci = {
77 75
78 0, /* filesize */ 76 0, /* filesize */