From 347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 16 Aug 2006 23:49:23 +0000 Subject: Replaced the old MiavConfig class with the new Configuration class in all the the appropriate places. Crippled the MulticastConfiguration class. This must be rewritten to use the new configuration interface. --- server/mov_encoder.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'server/mov_encoder.cc') 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 -#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); } -- cgit v1.2.3