summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/test_codec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c
index 642c1c39ff..f33d83fb15 100644
--- a/apps/plugins/test_codec.c
+++ b/apps/plugins/test_codec.c
@@ -509,7 +509,7 @@ static void codec_thread(void)
509 codec_playing = false; 509 codec_playing = false;
510} 510}
511 511
512static unsigned char* codec_stack; 512static uintptr_t* codec_stack;
513static size_t codec_stack_size; 513static size_t codec_stack_size;
514 514
515static enum plugin_status test_track(char* filename) 515static enum plugin_status test_track(char* filename)
@@ -585,8 +585,8 @@ static enum plugin_status test_track(char* filename)
585 codec_playing = true; 585 codec_playing = true;
586 586
587 if ((codecthread_id = rb->create_thread(codec_thread, 587 if ((codecthread_id = rb->create_thread(codec_thread,
588 (uint8_t*)codec_stack, codec_stack_size, 0, "testcodec" 588 codec_stack, codec_stack_size, 0, "testcodec"
589 IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL) 589 IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL)
590 { 590 {
591 log_text("Cannot create codec thread!",true); 591 log_text("Cannot create codec thread!",true);
592 goto exit; 592 goto exit;
@@ -642,7 +642,7 @@ exit:
642/* plugin entry point */ 642/* plugin entry point */
643enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 643enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
644{ 644{
645 unsigned char* codec_stack_copy; 645 uintptr_t* codec_stack_copy;
646 int result, selection = 0; 646 int result, selection = 0;
647 enum plugin_status res = PLUGIN_OK; 647 enum plugin_status res = PLUGIN_OK;
648 int scandir; 648 int scandir;
@@ -692,7 +692,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
692#endif 692#endif
693 693
694 codec_stack_copy = codec_mallocbuf + 512*1024; 694 codec_stack_copy = codec_mallocbuf + 512*1024;
695 audiobuf = codec_stack_copy + codec_stack_size; 695 audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size);
696 audiosize -= 512*1024 + codec_stack_size; 696 audiosize -= 512*1024 + codec_stack_size;
697 697
698#ifndef SIMULATOR 698#ifndef SIMULATOR