summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c10
1 files changed, 4 insertions, 6 deletions
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);