diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-03-26 06:52:16 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-03-26 06:52:16 +0000 |
commit | a92b9e65f7e4a3ce804811624f445ee3c2015f57 (patch) | |
tree | 18fddd4dc2b9343f6030b9470c114e614efd5da8 | |
parent | 5ca15399690a686646d4739b3f4c51c62cc88b68 (diff) | |
download | rockbox-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.c | 10 |
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) codec_playing = false; } -static unsigned char* codec_stack; +static uintptr_t* codec_stack; static size_t codec_stack_size; static enum plugin_status test_track(char* filename) @@ -585,8 +585,8 @@ static enum plugin_status test_track(char* filename) codec_playing = true; if ((codecthread_id = rb->create_thread(codec_thread, - (uint8_t*)codec_stack, codec_stack_size, 0, "testcodec" - IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL) + codec_stack, codec_stack_size, 0, "testcodec" + IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL) { log_text("Cannot create codec thread!",true); goto exit; @@ -642,7 +642,7 @@ exit: /* plugin entry point */ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) { - unsigned char* codec_stack_copy; + uintptr_t* codec_stack_copy; int result, selection = 0; enum plugin_status res = PLUGIN_OK; int scandir; @@ -692,7 +692,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #endif codec_stack_copy = codec_mallocbuf + 512*1024; - audiobuf = codec_stack_copy + codec_stack_size; + audiobuf = SKIPBYTES(codec_stack_copy, codec_stack_size); audiosize -= 512*1024 + codec_stack_size; #ifndef SIMULATOR |