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>2023-10-18 13:46:37 +0200
commit574b2871b30cc87dbf1bef1e784ec185ff8e19e6 (patch)
tree33a963c429753a0a8a78ee4a8595ebd9120ff49c /src
parent0e7f9fbebfce24d943b8fec4a564602a756d44e0 (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 4b53ee113..4447b7be2 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);