diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-07 13:03:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-07 13:03:07 +0100 |
| commit | 5d8a1583a57ae30c4f8ffbe0a7877dd7ca20236b (patch) | |
| tree | bb9a9a812cb86311d8ea94b8d32afcf8c58ef6bf /src | |
| parent | 8259e2771f85c33c531a83fe1a78668f158208da (diff) | |
Silence warnings from asdcplib when testing a MXF file for validity.
Diffstat (limited to 'src')
| -rw-r--r-- | src/smpte_subtitle_asset.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index b568139a..8408a57e 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -47,6 +47,7 @@ #include "subtitle_image.h" #include <asdcp/AS_DCP.h> #include <asdcp/KM_util.h> +#include <asdcp/KM_log.h> #include <libxml++/libxml++.h> #include <boost/foreach.hpp> #include <boost/algorithm/string.hpp> @@ -268,7 +269,9 @@ bool SMPTESubtitleAsset::valid_mxf (boost::filesystem::path file) { ASDCP::TimedText::MXFReader reader; + Kumu::DefaultLogSink().UnsetFilterFlag(Kumu::LOG_ALLOW_ALL); Kumu::Result_t r = reader.OpenRead (file.string().c_str ()); + Kumu::DefaultLogSink().SetFilterFlag(Kumu::LOG_ALLOW_ALL); return !ASDCP_FAILURE (r); } |
