X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimagemagick_content.h;h=b1e7f949530a0b70182019639807b58d396b2aaa;hb=dbc43b6e3021e34875d7d5bba04abf7ad1fc8633;hp=5820bd807ef5560c3b244e4fe7357a99a52790c5;hpb=fff7a8232b18ce6191e60ba911c29b64b9063d4d;p=dcpomatic.git diff --git a/src/lib/imagemagick_content.h b/src/lib/imagemagick_content.h index 5820bd807..b1e7f9495 100644 --- a/src/lib/imagemagick_content.h +++ b/src/lib/imagemagick_content.h @@ -24,15 +24,22 @@ namespace cxml { class Node; } -class ImageMagickContent : public VideoContent, public boost::enable_shared_from_this +class ImageMagickContent : public VideoContent { public: ImageMagickContent (boost::filesystem::path); ImageMagickContent (boost::shared_ptr); + boost::shared_ptr shared_from_this () { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + }; + void examine (boost::shared_ptr, boost::shared_ptr, bool); std::string summary () const; void as_xml (xmlpp::Node *) const; + boost::shared_ptr clone () const; + + void set_video_length (ContentVideoFrame); static bool valid_file (boost::filesystem::path); };