summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-05-07 23:54:10 +0000
committerDave Chapman <dave@dchapman.com>2007-05-07 23:54:10 +0000
commit4ae85e6886ac70f2cd2f5616f99428015ff22d48 (patch)
tree312ac3752ad336a17810f1f7c69c3fcdd606c79f /apps/plugin.c
parent3d53e103413d61b7c5366a0e7399ba15a03cf71f (diff)
downloadrockbox-4ae85e6886ac70f2cd2f5616f99428015ff22d48.zip
rockbox-4ae85e6886ac70f2cd2f5616f99428015ff22d48.tar.gz
rockbox-4ae85e6886ac70f2cd2f5616f99428015ff22d48.tar.bz2
rockbox-4ae85e6886ac70f2cd2f5616f99428015ff22d48.tar.xz
Revert the addition of the steal_codec_stack function. Replace by accessing the threads structure to grab the codec stack. Maybe a better solution exists.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index a7832ef..1478805 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -62,6 +62,8 @@ static int plugin_size = 0;
static bool (*pfn_tsr_exit)(bool reenter) = NULL; /* TSR exit callback */
static char current_plugin[MAX_PATH];
+extern struct thread_entry threads[MAXTHREADS];
+
static const struct plugin_api rockbox_api = {
/* lcd */
@@ -493,8 +495,8 @@ static const struct plugin_api rockbox_api = {
codec_load_file,
get_metadata,
get_codec_filename,
- steal_codec_stack,
#endif
+ threads,
};
int plugin_load(const char* plugin, void* parameter)