From 574b2871b30cc87dbf1bef1e784ec185ff8e19e6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Sep 2023 23:46:19 +0200 Subject: Remove check for _threads being null, as I think it should not happen. --- src/lib/j2k_encoder.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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 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); -- cgit v1.2.3