summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/alpine_cdc.c3
-rw-r--r--apps/plugins/battery_bench.c3
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c10
3 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c
index 9c1bc8bd0b..9cc1f9cde4 100644
--- a/apps/plugins/alpine_cdc.c
+++ b/apps/plugins/alpine_cdc.c
@@ -1171,7 +1171,8 @@ int main(void* parameter)
1171 rb->memset(&gTread, 0, sizeof(gTread)); 1171 rb->memset(&gTread, 0, sizeof(gTread));
1172 gTread.foreground = true; 1172 gTread.foreground = true;
1173 rb->create_thread(thread, stack, stacksize, "CDC" 1173 rb->create_thread(thread, stack, stacksize, "CDC"
1174 IF_PRIO(, PRIORITY_BACKGROUND)); 1174 IF_PRIO(, PRIORITY_BACKGROUND)
1175 IF_COP(, CPU, false));
1175 1176
1176#ifdef DEBUG 1177#ifdef DEBUG
1177 do 1178 do
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c
index fff3c2fa57..6e3178237f 100644
--- a/apps/plugins/battery_bench.c
+++ b/apps/plugins/battery_bench.c
@@ -479,7 +479,8 @@ int main(void)
479 rb->queue_init(&thread_q, true); /* put the thread's queue in the bcast list */ 479 rb->queue_init(&thread_q, true); /* put the thread's queue in the bcast list */
480 if(rb->create_thread(thread, thread_stack, 480 if(rb->create_thread(thread, thread_stack,
481 sizeof(thread_stack), "Battery Benchmark" 481 sizeof(thread_stack), "Battery Benchmark"
482 IF_PRIO(, PRIORITY_BACKGROUND)) == NULL) 482 IF_PRIO(, PRIORITY_BACKGROUND)
483 IF_COP(, CPU, false)) == NULL)
483 { 484 {
484 rb->splash(HZ,true,"Cannot create thread!"); 485 rb->splash(HZ,true,"Cannot create thread!");
485 return PLUGIN_ERROR; 486 return PLUGIN_ERROR;
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c
index 36f54dc224..684a491872 100644
--- a/apps/plugins/mpegplayer/mpegplayer.c
+++ b/apps/plugins/mpegplayer/mpegplayer.c
@@ -909,19 +909,17 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
909 videostatus = STREAM_PLAYING; 909 videostatus = STREAM_PLAYING;
910 910
911 /* We put the video thread on the second processor for multi-core targets. */ 911 /* We put the video thread on the second processor for multi-core targets. */
912#if NUM_CORES > 1
913 if ((videothread_id = rb->create_thread_on_core(COP,decode_mpeg2,
914#else
915 if ((videothread_id = rb->create_thread(decode_mpeg2, 912 if ((videothread_id = rb->create_thread(decode_mpeg2,
916#endif 913 (uint8_t*)video_stack,VIDEO_STACKSIZE,"mpgvideo" IF_PRIO(,PRIORITY_PLAYBACK)
917 (uint8_t*)video_stack,VIDEO_STACKSIZE,"mpgvideo" IF_PRIO(,PRIORITY_PLAYBACK))) == NULL) 914 IF_COP(, COP, true))) == NULL)
918 { 915 {
919 rb->splash(HZ,true,"Cannot create video thread!"); 916 rb->splash(HZ,true,"Cannot create video thread!");
920 return PLUGIN_ERROR; 917 return PLUGIN_ERROR;
921 } 918 }
922 919
923 if ((audiothread_id = rb->create_thread(mad_decode, 920 if ((audiothread_id = rb->create_thread(mad_decode,
924 (uint8_t*)audio_stack,AUDIO_STACKSIZE,"mpgaudio" IF_PRIO(,PRIORITY_PLAYBACK))) == NULL) 921 (uint8_t*)audio_stack,AUDIO_STACKSIZE,"mpgaudio" IF_PRIO(,PRIORITY_PLAYBACK)
922 IF_COP(, CPU, false))) == NULL)
925 { 923 {
926 rb->splash(HZ,true,"Cannot create audio thread!"); 924 rb->splash(HZ,true,"Cannot create audio thread!");
927 rb->remove_thread(videothread_id); 925 rb->remove_thread(videothread_id);