X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fatmos_mxf_content.h;h=350c4a35d3b48a8f8270847a5b3df5de39f42d2a;hb=ca981c8cfa23111e92be329f1c2dfbe3a07b4247;hp=156ebc7888c708d94517207f1c02cc02c4ae87dd;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/atmos_mxf_content.h b/src/lib/atmos_mxf_content.h index 156ebc788..350c4a35d 100644 --- a/src/lib/atmos_mxf_content.h +++ b/src/lib/atmos_mxf_content.h @@ -30,13 +30,15 @@ public: return boost::dynamic_pointer_cast (Content::shared_from_this ()); } + boost::shared_ptr shared_from_this () const { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + } + void examine (boost::shared_ptr film, boost::shared_ptr job); std::string summary () const; void as_xml (xmlpp::Node* node, bool with_path) const; - DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; static bool valid_mxf (boost::filesystem::path path); - -private: - Frame _length; };