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:
parent
21ac8f7346
commit
3f7602b0e8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue