1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Thomas Martitz 2014-04-09 09:00:36 +02:00
parent 924a3c48d2
commit 957613420e
4 changed files with 20 additions and 13 deletions

View file

@ -71,8 +71,6 @@ extern unsigned char codecbuf[];
static size_t codec_size;
extern void* plugin_get_audio_buffer(size_t *buffer_size);
struct codec_api ci = {
0, /* filesize */