summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/audio_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/audio_thread.c')
-rw-r--r--apps/plugins/mpegplayer/audio_thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/audio_thread.c b/apps/plugins/mpegplayer/audio_thread.c
index 45fa725..f976fd6 100644
--- a/apps/plugins/mpegplayer/audio_thread.c
+++ b/apps/plugins/mpegplayer/audio_thread.c
@@ -468,7 +468,7 @@ static void audio_thread(void)
struct audio_thread_data td;
#ifdef HAVE_PRIORITY_SCHEDULING
/* Up the priority since the core DSP over-yields internally */
- int old_priority = rb->thread_set_priority(THREAD_ID_CURRENT,
+ int old_priority = rb->thread_set_priority(rb->thread_self(),
PRIORITY_PLAYBACK-4);
#endif
@@ -514,7 +514,7 @@ static void audio_thread(void)
default:
{
#ifdef HAVE_PRIORITY_SCHEDULING
- rb->thread_set_priority(THREAD_ID_CURRENT, old_priority);
+ rb->thread_set_priority(rb->thread_self(), old_priority);
#endif
return;
}