diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/j2k_encoder.cc | 5 |
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); |
