summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-10 23:46:19 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-16 17:56:10 +0200
commit2c210354e67da6d8bf1019595e8c6e6dcb442b9e (patch)
tree6dc248dbefcf8a95619d3b2a126edfd68d3840a6
parent373846a154d66a09a973b70dbba7fb0c3b8b2e02 (diff)
Remove check for _threads being null, as I think it should not happen.
-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);