summaryrefslogtreecommitdiff
path: root/server/mov_encoder.cc
diff options
context:
space:
mode:
authordeva <deva>2006-08-16 23:49:23 +0000
committerdeva <deva>2006-08-16 23:49:23 +0000
commit347b1d8ed3a4f780f3a5c0d57a04eab05ca517a2 (patch)
treedc21975923fb440c78ee4bbffc645a138071978f /server/mov_encoder.cc
parent6c07f9219bed6ccddc9b65ad40414cf0a9f7d633 (diff)
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.
Diffstat (limited to 'server/mov_encoder.cc')
-rw-r--r--server/mov_encoder.cc8
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);
}