summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-08-24 11:33:07 +0200
committerCarl Hetherington <cth@carlh.net>2023-08-26 10:22:42 +0200
commite8800b7efc51b6e0c186a7bd733e014a3093a384 (patch)
tree3da490dceeb604ea424c5db131b5fb1a6d78d151
parenta54c86b47987d753151fbea831c99a0fef811110 (diff)
Try to capture ffmpeg logs during tests.
-rw-r--r--src/lib/util.cc1
-rw-r--r--src/lib/util.h1
-rw-r--r--test/test.cc1
3 files changed, 2 insertions, 1 deletions
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 ();