Add interface to set up still image lengths.
[dcpomatic.git] / src / lib / sndfile_content.h
index 90845ba08d544158e1b6093fd43c900ee97b4ae3..b696b57a54b9c98be0605e8fd004bd33e994d6df 100644 (file)
@@ -28,6 +28,10 @@ class SndfileContent : public AudioContent
 public:
        SndfileContent (boost::filesystem::path);
        SndfileContent (boost::shared_ptr<const cxml::Node>);
+
+       boost::shared_ptr<SndfileContent> shared_from_this () {
+               return boost::dynamic_pointer_cast<SndfileContent> (Content::shared_from_this ());
+       }
        
        std::string summary () const;
        std::string information () const;