summaryrefslogtreecommitdiffstats
path: root/apps/plugins/mpegplayer/mpegplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpegplayer.c')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 50452b6fdc..0903da69e4 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -1566,11 +1566,12 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
}
/* Initialize IRAM - stops audio and voice as well */
- audiobuf = api->plugin_get_audio_buffer(&audiosize);
PLUGIN_IRAM_INIT(api)
rb = api;
+ audiobuf = rb->plugin_get_audio_buffer(&audiosize);
+
/* Set disk pointers to NULL */
disk_buf_end = disk_buf = NULL;