summaryrefslogtreecommitdiff
path: root/plugins/ao/plugin.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-06-28 22:20:55 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-06-28 22:20:55 +0200
commita255ff9f91e27fa06152210953e2cb35e52f37a9 (patch)
tree8edcecc2f2826c1a95627ef825db0849690e089f /plugins/ao/plugin.c
parente8eba665eaa2befeab7edc54646dc5cd02b6e472 (diff)
ao plugin: reentrant arm7 emu; fixed dsf library loader
Diffstat (limited to 'plugins/ao/plugin.c')
-rw-r--r--plugins/ao/plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ao/plugin.c b/plugins/ao/plugin.c
index 6d648fad..36c5d2f7 100644
--- a/plugins/ao/plugin.c
+++ b/plugins/ao/plugin.c
@@ -90,7 +90,7 @@ aoplug_init (DB_fileinfo_t *_info, DB_playItem_t *it) {
return -1;
}
- info->decoder = ao_start (info->type, (uint8 *)info->filebuffer, info->filesize);
+ info->decoder = ao_start (info->type, it->fname, (uint8 *)info->filebuffer, info->filesize);
if (!info->decoder) {
fprintf (stderr, "psf: ao_start failed\n");
return -1;
@@ -184,7 +184,7 @@ aoplug_insert (DB_playItem_t *after, const char *fname) {
return NULL;
}
- void *dec = ao_start (type, (uint8*)buffer, size);
+ void *dec = ao_start (type, fname, (uint8*)buffer, size);
if (!dec) {
free (buffer);
return NULL;