summaryrefslogtreecommitdiff
path: root/src/lib/encode_server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-05 13:20:29 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-05 13:20:43 +0100
commit0e44231b81126ad2208413af712c3dea1fa23570 (patch)
tree26c39b360413610fa6c0791df2830e07609ace67 /src/lib/encode_server.cc
parent65027953889572e78395fb2c0f184d5f3ffe3941 (diff)
Fix valgrind support.
Diffstat (limited to 'src/lib/encode_server.cc')
-rw-r--r--src/lib/encode_server.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/encode_server.cc b/src/lib/encode_server.cc
index 80d25a358..9a7c622e0 100644
--- a/src/lib/encode_server.cc
+++ b/src/lib/encode_server.cc
@@ -47,7 +47,7 @@ LIBDCP_ENABLE_WARNINGS
#include <fmt/format.h>
#include <boost/algorithm/string.hpp>
#include <boost/scoped_array.hpp>
-#ifdef HAVE_VALGRIND_H
+#ifdef DCPOMATIC_HAVE_VALGRIND_MEMCHECK_H
#include <valgrind/memcheck.h>
#endif
#include <string>
@@ -74,10 +74,10 @@ using dcp::Size;
EncodeServer::EncodeServer (bool verbose, int num_threads)
-#if !defined(RUNNING_ON_VALGRIND) || RUNNING_ON_VALGRIND == 0
- : Server (ENCODE_FRAME_PORT)
+#ifdef DCPOMATIC_HAVE_VALGRIND_MEMCHECK_H
+ : Server(ENCODE_FRAME_PORT, RUNNING_ON_VALGRIND ? 2400 : 30)
#else
- : Server (ENCODE_FRAME_PORT, 2400)
+ : Server(ENCODE_FRAME_PORT)
#endif
, _verbose (verbose)
, _num_threads (num_threads)