diff options
Diffstat (limited to 'apps/plugins/mpa2wav.c')
-rw-r--r-- | apps/plugins/mpa2wav.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/plugins/mpa2wav.c b/apps/plugins/mpa2wav.c index 2f1f329275..a4fbf79605 100644 --- a/apps/plugins/mpa2wav.c +++ b/apps/plugins/mpa2wav.c @@ -24,11 +24,9 @@ #include <codecs/libmad/mad.h> -static struct plugin_api* rb; - -/* Helper functions common to all decoder test viewers (uses rb) */ +#include "lib/xxx2wav.h" /* Helper functions common to test decoders */ -#include "xxx2wav.h" +static struct plugin_api* rb; struct mad_stream Stream; struct mad_frame Frame; @@ -149,7 +147,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) /* This function sets up the buffers and reads the file into RAM */ - if (local_init(file,"/libmadtest.wav",&file_info)) { + if (local_init(file,"/libmadtest.wav",&file_info,api)) { return PLUGIN_ERROR; } |