Don't say 'certificate downloaded' if it failed during the read part.
[dcpomatic.git] / src / lib / ffmpeg_content.h
index 8bd5ef4fa9b05ab1ddd80dfc433fa94d793ddef7..4c612cd3ee00eb62720fc35fe1759f5fd2cf1451 100644 (file)
@@ -54,12 +54,17 @@ public:
                return boost::dynamic_pointer_cast<FFmpegContent> (Content::shared_from_this ());
        }
 
+       boost::shared_ptr<const FFmpegContent> shared_from_this () const {
+               return boost::dynamic_pointer_cast<const FFmpegContent> (Content::shared_from_this ());
+       }
+
        void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
        void take_settings_from (boost::shared_ptr<const Content> 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<const Film> film) const;
+       DCPTime approximate_length () const;
 
        std::string identifier () const;