X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fatmos_mxf_content.cc;h=a42b1095429fd35a467685185fce2f8f50be5905;hb=76037799956725486be80524b1f72d7e3dc827ec;hp=927d36ff65bc5a107049cc3dbc8d8798332a6062;hpb=48e51965d74cf2a2f2f6f4c5e9c349f1b1103e66;p=dcpomatic.git diff --git a/src/lib/atmos_mxf_content.cc b/src/lib/atmos_mxf_content.cc index 927d36ff6..a42b10954 100644 --- a/src/lib/atmos_mxf_content.cc +++ b/src/lib/atmos_mxf_content.cc @@ -1,19 +1,20 @@ /* Copyright (C) 2016 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ @@ -21,6 +22,7 @@ #include "job.h" #include "film.h" #include "compose.hpp" +#include #include #include #include @@ -46,6 +48,8 @@ AtmosMXFContent::AtmosMXFContent (shared_ptr film, cxml::ConstNodePt bool AtmosMXFContent::valid_mxf (boost::filesystem::path path) { + Kumu::DefaultLogSink().UnsetFilterFlag(Kumu::LOG_ALLOW_ALL); + try { shared_ptr a (new dcp::AtmosAsset (path)); return true; @@ -55,6 +59,8 @@ AtmosMXFContent::valid_mxf (boost::filesystem::path path) } + Kumu::DefaultLogSink().SetFilterFlag(Kumu::LOG_ALLOW_ALL); + return false; } @@ -78,10 +84,10 @@ AtmosMXFContent::summary () const } void -AtmosMXFContent::as_xml (xmlpp::Node* node) const +AtmosMXFContent::as_xml (xmlpp::Node* node, bool with_paths) const { node->add_child("Type")->add_child_text ("AtmosMXF"); - Content::as_xml (node); + Content::as_xml (node, with_paths); } DCPTime