summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-09-10 23:46:19 +0200
committerCarl Hetherington <cth@carlh.net>2023-11-29 21:19:55 +0100
commit64b000bc3f5fb58539792cc288cb6ba63300ed47 (patch)
tree68c91d4f814827a45b317a69a7730763cde4bad6 /src/lib/j2k_encoder.cc
parenta0a0217de248e6e50315a22e63c12fa5f107ff94 (diff)
Remove check for _threads being null, as I think it should not happen.
Diffstat (limited to 'src/lib/j2k_encoder.cc')
-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);