summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-10 23:46:19 +0200
committerCarl Hetherington <cth@carlh.net>2024-01-28 02:01:57 +0100
commit25dd85d10a05b363f5f6a94d6dafbf4aed47c4ac (patch)
tree8b59c103e48b636bccdcc9b5b92487d103bc0797 /src
parent8f3485003fe9b639e320132930db44f1d0608825 (diff)
Remove check for _threads being null, as I think it should not happen.
Diffstat (limited to 'src')
-rw-r--r--src/lib/j2k_encoder.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/j2k_encoder.cc b/src/lib/j2k_encoder.cc
index 552135469..1f0c606d1 100644
--- a/src/lib/j2k_encoder.cc
+++ b/src/lib/j2k_encoder.cc
@@ -229,10 +229,7 @@ J2KEncoder::encode (shared_ptr<PlayerVideo> pv, DCPTime time)
size_t threads = 0;
{
boost::mutex::scoped_lock lm (_threads_mutex);
- if (_threads)
- threads = _threads->size();
- else
- threads = std::thread::hardware_concurrency();
+ threads = _threads->size();
}
boost::mutex::scoped_lock queue_lock (_queue_mutex);