diff options
Diffstat (limited to 'apps/plugins/a52towav.c')
-rw-r--r-- | apps/plugins/a52towav.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/a52towav.c b/apps/plugins/a52towav.c index 3e81c9db0c..f62106a8c3 100644 --- a/apps/plugins/a52towav.c +++ b/apps/plugins/a52towav.c | |||
@@ -27,11 +27,9 @@ | |||
27 | #include <codecs/liba52/config.h> | 27 | #include <codecs/liba52/config.h> |
28 | #include <codecs/liba52/a52.h> | 28 | #include <codecs/liba52/a52.h> |
29 | 29 | ||
30 | static struct plugin_api* rb; | 30 | #include "lib/xxx2wav.h" /* Helper functions common to test decoders */ |
31 | |||
32 | /* Helper functions common to all decoder test viewers (uses rb) */ | ||
33 | 31 | ||
34 | #include "xxx2wav.h" | 32 | static struct plugin_api* rb; |
35 | 33 | ||
36 | /* FIX: We can remove this warning when the build system has a | 34 | /* FIX: We can remove this warning when the build system has a |
37 | mechanism for auto-detecting the endianness of the target CPU - | 35 | mechanism for auto-detecting the endianness of the target CPU - |
@@ -167,6 +165,8 @@ void a52_decode_data (file_info_struct* file_info, uint8_t * start, uint8_t * en | |||
167 | /* this is the plugin entry point */ | 165 | /* this is the plugin entry point */ |
168 | enum plugin_status plugin_start(struct plugin_api* api, void* file) | 166 | enum plugin_status plugin_start(struct plugin_api* api, void* file) |
169 | { | 167 | { |
168 | file_info_struct file_info; | ||
169 | |||
170 | /* Generic plugin initialisation */ | 170 | /* Generic plugin initialisation */ |
171 | 171 | ||
172 | TEST_PLUGIN_API(api); | 172 | TEST_PLUGIN_API(api); |
@@ -175,7 +175,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
175 | 175 | ||
176 | /* This function sets up the buffers and reads the file into RAM */ | 176 | /* This function sets up the buffers and reads the file into RAM */ |
177 | 177 | ||
178 | if (local_init(file,"/ac3test.wav",&file_info)) { | 178 | if (local_init(file,"/ac3test.wav",&file_info,api)) { |
179 | return PLUGIN_ERROR; | 179 | return PLUGIN_ERROR; |
180 | } | 180 | } |
181 | 181 | ||