summaryrefslogtreecommitdiff
path: root/apps/codec_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r--apps/codec_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index f166f2ba18..6f15ba1fb3 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -567,7 +567,7 @@ void codec_thread_resume(void)
567 567
568bool is_codec_thread(void) 568bool is_codec_thread(void)
569{ 569{
570 return thread_get_current() == codec_thread_id; 570 return thread_self() == codec_thread_id;
571} 571}
572 572
573#ifdef HAVE_PRIORITY_SCHEDULING 573#ifdef HAVE_PRIORITY_SCHEDULING