X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_content.h;h=970a68d661271be3b567d714ec880cc55111527a;hb=001ba1644fc6aa54f91fcaaa62ae7e5de2313bc1;hp=bc0f331515f861f71134706c661b246f7efd8b2e;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/image_content.h b/src/lib/image_content.h index bc0f33151..970a68d66 100644 --- a/src/lib/image_content.h +++ b/src/lib/image_content.h @@ -33,11 +33,16 @@ 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); std::string summary () const; std::string technical_summary () const; void as_xml (xmlpp::Node *, bool with_paths) const; - DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; std::string identifier () const; @@ -46,7 +51,7 @@ public: bool still () const; private: - void add_properties (std::list& p) const; + void add_properties (boost::shared_ptr film, std::list& p) const; boost::optional _path_to_scan; };