X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.cc;fp=src%2Flib%2Fvideo_mxf_content.cc;h=8e762ae14f6d8545993f185d370a630dae1436eb;hb=f12587df699a72655230ac737ece31a5436a5a5e;hp=325ea8e7214a460cc52e447c26e96e07cf5f4a56;hpb=be2e60789c5b4ed99d68625b5f793092afa2cbf4;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.cc b/src/lib/video_mxf_content.cc index 325ea8e72..8e762ae14 100644 --- a/src/lib/video_mxf_content.cc +++ b/src/lib/video_mxf_content.cc @@ -24,6 +24,7 @@ #include "job.h" #include "film.h" #include "compose.hpp" +#include #include #include #include @@ -50,6 +51,8 @@ VideoMXFContent::VideoMXFContent (shared_ptr film, cxml::ConstNodePt bool VideoMXFContent::valid_mxf (boost::filesystem::path path) { + Kumu::DefaultLogSink().UnsetFilterFlag(Kumu::LOG_ALLOW_ALL); + try { shared_ptr mp (new dcp::MonoPictureAsset (path)); return true; @@ -60,6 +63,7 @@ VideoMXFContent::valid_mxf (boost::filesystem::path path) } try { + Kumu::DefaultLogSink().SetFilterFlag(0); shared_ptr sp (new dcp::StereoPictureAsset (path)); return true; } catch (dcp::MXFFileError& e) { @@ -68,6 +72,8 @@ VideoMXFContent::valid_mxf (boost::filesystem::path path) } + Kumu::DefaultLogSink().SetFilterFlag(Kumu::LOG_ALLOW_ALL); + return false; }