Added discard_codec to simulator code.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10144 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomasz Malesinski 2006-06-21 19:14:18 +00:00
parent 21ac8f7346
commit 3f7602b0e8

View file

@ -248,6 +248,8 @@ int codec_load_ram(char* codecptr, int size, void* ptr2, int bufwrap,
void *pd;
hdr = sim_codec_load_ram(codecptr, size, ptr2, bufwrap, &pd);
api->discard_codec();
if (pd == NULL)
return CODEC_ERROR;