summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-03-26 06:52:16 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-03-26 06:52:16 +0000
commita92b9e65f7e4a3ce804811624f445ee3c2015f57 (patch)
tree18fddd4dc2b9343f6030b9470c114e614efd5da8
parent5ca15399690a686646d4739b3f4c51c62cc88b68 (diff)
downloadrockbox-a92b9e65f7e4a3ce804811624f445ee3c2015f57.tar.gz
rockbox-a92b9e65f7e4a3ce804811624f445ee3c2015f57.zip
Fix pointer warnings in test_codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16813 a1c6a512-1295-4272-9138-f99709370657
-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