diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-15 00:30:27 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-15 19:49:36 +0200 |
| commit | 18ed20b9191d7122d78251d047f9ff7873c313d6 (patch) | |
| tree | 40444e330aad29717b38c7f520960dee1847d72f /test/ffmpeg_encoder_test.cc | |
| parent | c522d113d91f95fa78e017e6edce6a6d64e37778 (diff) | |
Fix test logging setup to actually work.
Diffstat (limited to 'test/ffmpeg_encoder_test.cc')
| -rw-r--r-- | test/ffmpeg_encoder_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ffmpeg_encoder_test.cc b/test/ffmpeg_encoder_test.cc index c3e8c9a81..993da4d23 100644 --- a/test/ffmpeg_encoder_test.cc +++ b/test/ffmpeg_encoder_test.cc @@ -24,6 +24,7 @@ #include "lib/config.h" #include "lib/content_factory.h" #include "lib/dcp_content.h" +#include "lib/dcpomatic_log.h" #include "lib/ffmpeg_content.h" #include "lib/ffmpeg_encoder.h" #include "lib/ffmpeg_examiner.h" @@ -471,8 +472,8 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_1) /** Regression test for Butler video buffers reached 480 frames (audio is 0) (#2101) */ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_2) { - auto logs = Config::instance()->log_types(); - Config::instance()->set_log_types(logs | LogEntry::TYPE_DEBUG_PLAYER); + auto logs = dcpomatic_log->types(); + dcpomatic_log->set_types(logs | LogEntry::TYPE_DEBUG_PLAYER); auto content = content_factory(TestPaths::private_data() / "tge_clip.mkv").front(); auto film = new_test_film2 ("ffmpeg_encoder_prores_regression_2", { content }); @@ -481,6 +482,6 @@ BOOST_AUTO_TEST_CASE (ffmpeg_encoder_prores_regression_2) FFmpegEncoder encoder (film, job, "build/test/ffmpeg_encoder_prores_regression_2.mov", ExportFormat::PRORES, false, true, false, 23); encoder.go (); - Config::instance()->set_log_types(logs); + dcpomatic_log->set_types(logs); } |
