summaryrefslogtreecommitdiff
path: root/src/lib/encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-25 14:38:31 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-25 14:38:31 +0100
commite80732c66bb8907836eafeb816d695f96e063843 (patch)
tree1da686317768b3ab11228c2d7cc8715dd3ed6614 /src/lib/encoder.cc
parentd3bd799b42c0a29b415c2a37f6dd8196a97ee541 (diff)
5b5c36d28d07e8cd93af5a3f766fd95f2a506beb from master; increase the number of images that are kept around in memory before pushing to disk.
Diffstat (limited to 'src/lib/encoder.cc')
-rw-r--r--src/lib/encoder.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc
index 2a6026879..7a0295e4c 100644
--- a/src/lib/encoder.cc
+++ b/src/lib/encoder.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -84,6 +84,8 @@ Encoder::add_worker_threads (ServerDescription d)
for (int i = 0; i < d.threads(); ++i) {
_threads.push_back (new boost::thread (boost::bind (&Encoder::encoder_thread, this, d)));
}
+
+ _writer->set_encoder_threads (_threads.size ());
}
void
@@ -93,6 +95,8 @@ Encoder::begin ()
_threads.push_back (new boost::thread (boost::bind (&Encoder::encoder_thread, this, optional<ServerDescription> ())));
}
+ _writer->set_encoder_threads (_threads.size ());
+
if (!ServerFinder::instance()->disabled ()) {
_server_found_connection = ServerFinder::instance()->connect (boost::bind (&Encoder::server_found, this, _1));
}