From 44554e60756288e99bf664ea87f86dc482006eff Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 23 Jan 2009 09:51:26 +0000 Subject: initialize the codecs API in the codec loader, using the same method as used in the plugin loader git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19824 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/codecs.c') diff --git a/apps/codecs.c b/apps/codecs.c index 2c547ff..cddebb6 100644 --- a/apps/codecs.c +++ b/apps/codecs.c @@ -229,8 +229,9 @@ static int codec_load_ram(int size, struct codec_api *api) return CODEC_ERROR; } + *(hdr->api) = api; invalidate_icache(); - status = hdr->entry_point(api); + status = hdr->entry_point(); sim_codec_close(pd); -- cgit v1.1