mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
924a3c48d2
commit
957613420e
4 changed files with 20 additions and 13 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue