X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencode_server.cc;h=d326c767be226aa240255504354a4ae08a33ef75;hb=fcba100f0dfd1d4214291abb76f22ebd696c24d4;hp=24ba5bc451449bc59ab63d2c71d8ed182eb56a13;hpb=7bc2134d658778e04f1756c255e604b4ab5a5831;p=dcpomatic.git diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc index 24ba5bc45..d326c767b 100644 --- a/src/lib/encode_server.cc +++ b/src/lib/encode_server.cc @@ -38,12 +38,12 @@ #include "dcpomatic_log.h" #include "encoded_log_entry.h" #include "version.h" -#include "warnings.h" #include +#include #include -DCPOMATIC_DISABLE_WARNINGS +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include #include #ifdef HAVE_VALGRIND_H @@ -336,8 +336,7 @@ EncodeServer::handle (shared_ptr socket) { boost::mutex::scoped_lock lock (_mutex); - Waker waker; - waker.nudge (); + _waker.nudge (); /* Wait until the queue has gone down a bit */ while (_queue.size() >= _worker_threads.size() * 2 && !_terminate) {