From 47258993e57bfe09f0d5b4274166f92ab29148a4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 5 Mar 2025 22:39:26 +0100 Subject: Create SignalManager in the front end, not the tested part. Otherwise the wrong SignalManager gets used for some tests (after an encode_cli test) which causes problems. --- src/tools/dcpomatic_cli.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tools/dcpomatic_cli.cc') diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc index 178cd9123..27934e664 100644 --- a/src/tools/dcpomatic_cli.cc +++ b/src/tools/dcpomatic_cli.cc @@ -26,6 +26,7 @@ #include "lib/cross.h" #include "lib/encode_cli.h" +#include "lib/signal_manager.h" #include "lib/util.h" #include @@ -38,6 +39,8 @@ main(int argc, char* argv[]) dcpomatic_setup_path_encoding(); dcpomatic_setup(); + signal_manager = new SignalManager(); + auto error = encode_cli(fixer.argc(), fixer.argv(), [](std::string s) { std::cout << s; }, []() { std::cout.flush(); }); if (error) { std::cerr << *error << "\n"; -- cgit v1.2.3