From e8800b7efc51b6e0c186a7bd733e014a3093a384 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 24 Aug 2023 11:33:07 +0200 Subject: [PATCH] Try to capture ffmpeg logs during tests. --- src/lib/util.cc | 1 - src/lib/util.h | 1 + test/test.cc | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/util.cc b/src/lib/util.cc index be5ab5b95..05b69644f 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -408,7 +408,6 @@ ffmpeg_log_callback(void* ptr, int level, const char* fmt, va_list vl) } -static void capture_ffmpeg_logs() { diff --git a/src/lib/util.h b/src/lib/util.h index 4c8a2b1b7..b92869b25 100644 --- a/src/lib/util.h +++ b/src/lib/util.h @@ -96,5 +96,6 @@ extern void start_of_thread (std::string name); extern std::string error_details(boost::system::error_code ec); extern bool contains_assetmap(boost::filesystem::path dir); extern std::string word_wrap(std::string input, int columns); +extern void capture_ffmpeg_logs(); #endif diff --git a/test/test.cc b/test/test.cc index 1739e8e89..402894cb1 100644 --- a/test/test.cc +++ b/test/test.cc @@ -157,6 +157,7 @@ struct TestConfig dcpomatic_setup (); setup_test_config (); + capture_ffmpeg_logs(); EncodeServerFinder::instance()->stop (); -- 2.30.2