mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Fix pointer warnings in test_codec.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16813 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5ca1539969
commit
a92b9e65f7
1 changed files with 5 additions and 5 deletions
|
@ -509,7 +509,7 @@ static void codec_thread(void)
|
||||||
codec_playing = false;
|
codec_playing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned char* codec_stack;
|
static uintptr_t* codec_stack;
|
||||||
static size_t codec_stack_size;
|
static size_t codec_stack_size;
|
||||||
|
|
||||||
static enum plugin_status test_track(char* filename)
|
static enum plugin_status test_track(char* filename)
|
||||||
|
@ -585,8 +585,8 @@ static enum plugin_status test_track(char* filename)
|
||||||
codec_playing = true;
|
codec_playing = true;
|
||||||
|
|
||||||
if ((codecthread_id = rb->create_thread(codec_thread,
|
if ((codecthread_id = rb->create_thread(codec_thread,
|
||||||
(uint8_t*)codec_stack, codec_stack_size, 0, "testcodec"
|
codec_stack, codec_stack_size, 0, "testcodec"
|
||||||
IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL)
|
IF_PRIO(,PRIORITY_PLAYBACK) IF_COP(, CPU))) == NULL)
|
||||||
{
|
{
|
||||||
log_text("Cannot create codec thread!",true);
|
log_text("Cannot create codec thread!",true);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -642,7 +642,7 @@ exit:
|
||||||
/* plugin entry point */
|
/* plugin entry point */
|
||||||
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
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;
|
int result, selection = 0;
|
||||||
enum plugin_status res = PLUGIN_OK;
|
enum plugin_status res = PLUGIN_OK;
|
||||||
int scandir;
|
int scandir;
|
||||||
|
@ -692,7 +692,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
codec_stack_copy = codec_mallocbuf + 512*1024;
|
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;
|
audiosize -= 512*1024 + codec_stack_size;
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue