summaryrefslogtreecommitdiff
path: root/src/audio_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_encoder.cc')
-rw-r--r--src/audio_encoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_encoder.cc b/src/audio_encoder.cc
index 6e412c3..0c82976 100644
--- a/src/audio_encoder.cc
+++ b/src/audio_encoder.cc
@@ -52,7 +52,7 @@ void AudioEncoder::thread_main()
info->info("AudioEncoder::run");
// Run with slightly lower priority than MovEncoderWriter
- nice(1);
+ if(nice(1) == -1) info->warn("AudioEncoder::run could not set nice.");
Frame *in_frame = NULL;
Frame *out_frame = NULL;