From 957613420e9c4906e8bb8ac685e10fc0c24329b8 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 9 Apr 2014 09:00:36 +0200 Subject: 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 --- apps/codecs.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'apps/codecs.c') diff --git a/apps/codecs.c b/apps/codecs.c index 18022d9..e84cdf8 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -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 */ -- cgit v1.1