diff options
Diffstat (limited to 'server/mov_encoder.cc')
-rw-r--r-- | server/mov_encoder.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/mov_encoder.cc b/server/mov_encoder.cc index 15135df..2b10f73 100644 --- a/server/mov_encoder.cc +++ b/server/mov_encoder.cc @@ -39,7 +39,7 @@ // For nice #include <unistd.h> -#include "miav_config.h" +#include "configuration.h" #include "info.h" #include "libfame_wrapper.h" @@ -99,7 +99,11 @@ void MovEncoder::thread_main() *running = false; // Kick them sleepy ones so they get the message. - int threads = MIaV::config->readInt("encoding_threads") - 1; // -1 cause we only need the others! + int threads; + if(MIaV::config->get("encoding_threads", &threads)) + MIaV::info->error("Could not read the symbol [encoding_threads] from the conf file!"); + threads -= 1; // -1 cause we only need the others! + for(int cnt = 0; cnt < threads; cnt++) { inputqueue->push(NULL); } |