Distinguish master DoM encode threads count from the server count.
[dcpomatic.git] / src / lib / writer.cc
index c507c552758bb4ca8ee9a0f081042b9de20f5f42..87cdac2d8c97bf3ce6dd4b0e47b93cf96fe4bdcb 100644 (file)
@@ -489,7 +489,7 @@ Writer::finish ()
 
        shared_ptr<boost::asio::io_service::work> work (new boost::asio::io_service::work (service));
 
-       int const threads = max (1, Config::instance()->num_local_encoding_threads ());
+       int const threads = max (1, Config::instance()->master_encoding_threads ());
 
        for (int i = 0; i < threads; ++i) {
                pool.create_thread (boost::bind (&boost::asio::io_service::run, &service));