summaryrefslogtreecommitdiff
path: root/src/lib/j2k_encoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/j2k_encoder.cc')
-rw-r--r--src/lib/j2k_encoder.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/j2k_encoder.cc b/src/lib/j2k_encoder.cc
index 1e5c206fc..ba512ae25 100644
--- a/src/lib/j2k_encoder.cc
+++ b/src/lib/j2k_encoder.cc
@@ -385,9 +385,11 @@ J2KEncoder::servers_list_changed ()
}
}
- shared_ptr<GPUJ2KEncodeWorker> w (new GPUJ2KEncodeWorker());
- _workers.push_back (w);
- _threads->create_thread(boost::bind(&J2KEncoder::encoder_thread, this, w));
+ for (int i = 0; i < 1; ++i) {
+ shared_ptr<GPUJ2KEncodeWorker> w (new GPUJ2KEncodeWorker());
+ _workers.push_back (w);
+ _threads->create_thread(boost::bind(&J2KEncoder::encoder_thread, this, w));
+ }
_writer->set_encoder_threads (_threads->size());
}