diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/pcm_record.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 8c9207f232..8a832e409c 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c | |||
@@ -897,8 +897,8 @@ static void pcmrec_flush(unsigned flush_num) | |||
897 | priority until finished */ | 897 | priority until finished */ |
898 | logf("pcmrec: boost (%s)", | 898 | logf("pcmrec: boost (%s)", |
899 | num >= flood_watermark ? "num" : "time"); | 899 | num >= flood_watermark ? "num" : "time"); |
900 | prio_pcmrec = thread_set_priority(THREAD_ID_CURRENT, | 900 | prio_pcmrec = thread_set_priority(thread_self(), |
901 | thread_get_priority(THREAD_ID_CURRENT) - 4); | 901 | thread_get_priority(thread_self()) - 4); |
902 | prio_codec = codec_thread_set_priority( | 902 | prio_codec = codec_thread_set_priority( |
903 | codec_thread_get_priority() - 4); | 903 | codec_thread_get_priority() - 4); |
904 | } | 904 | } |
@@ -950,7 +950,7 @@ static void pcmrec_flush(unsigned flush_num) | |||
950 | { | 950 | { |
951 | /* return to original priorities */ | 951 | /* return to original priorities */ |
952 | logf("pcmrec: unboost priority"); | 952 | logf("pcmrec: unboost priority"); |
953 | thread_set_priority(THREAD_ID_CURRENT, prio_pcmrec); | 953 | thread_set_priority(thread_self(), prio_pcmrec); |
954 | codec_thread_set_priority(prio_codec); | 954 | codec_thread_set_priority(prio_codec); |
955 | } | 955 | } |
956 | 956 | ||