No more playlist viewer crashes.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6648 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2005-06-10 11:35:52 +00:00
parent 2ed0b195be
commit 842bed7275

View file

@ -334,7 +334,9 @@ int codec_load_ram(char* pluginptr, size_t size, void *parameter, void* ptr2, si
{
enum plugin_status (*plugin_start)(struct plugin_api* api, void* param);
int copy_n;
int status;
plugin_size = size;
if ((int)&pluginbuf != (int)pluginptr) {
/* zero out plugin buffer to ensure a properly zeroed bss area */
memset(pluginbuf, 0, PLUGIN_BUFFER_SIZE);
@ -357,7 +359,11 @@ int codec_load_ram(char* pluginptr, size_t size, void *parameter, void* ptr2, si
invalidate_icache();
return plugin_start((struct plugin_api*) &rockbox_api, parameter);
plugin_loaded = true;
status = plugin_start((struct plugin_api*) &rockbox_api, parameter);
plugin_loaded = false;
return status;
}
int codec_load_file(const char *plugin, void *parameter)