X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fffmpeg_content.h;h=4c612cd3ee00eb62720fc35fe1759f5fd2cf1451;hb=0cbdfdd6c0ef9a1b72070ee741be76332491392a;hp=8bd5ef4fa9b05ab1ddd80dfc433fa94d793ddef7;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h index 8bd5ef4fa..4c612cd3e 100644 --- a/src/lib/ffmpeg_content.h +++ b/src/lib/ffmpeg_content.h @@ -54,12 +54,17 @@ 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); void take_settings_from (boost::shared_ptr c); 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; + DCPTime approximate_length () const; std::string identifier () const;