Fix crash on analysing audio when we think the film is zero length.
[dcpomatic.git] / src / lib / imagemagick_decoder.h
index f636191f2e3bdbb6da13d799c13a496cabbd6885..0e375f6e9e3127a040f862d014189e1d689527ca 100644 (file)
@@ -26,14 +26,19 @@ namespace Magick {
 class ImageMagickDecoder : public VideoDecoder
 {
 public:
-       ImageMagickDecoder (boost::shared_ptr<Film>, boost::shared_ptr<const Options>, Job *);
+       ImageMagickDecoder (boost::shared_ptr<Film>, DecodeOptions);
 
        float frames_per_second () const {
                /* We don't know */
                return 0;
        }
 
-       Size native_size () const;
+       libdcp::Size native_size () const;
+
+       SourceFrame length () const {
+               /* We don't know */
+               return 0;
+       }
 
        int audio_channels () const {
                return 0;
@@ -51,6 +56,9 @@ public:
                return false;
        }
 
+       bool seek (double);
+       bool seek_to_last ();
+
 protected:
        bool pass ();
        PixelFormat pixel_format () const;
@@ -74,6 +82,8 @@ protected:
        }
 
 private:
+       void film_changed (Film::Property);
+       
        std::list<std::string> _files;
        std::list<std::string>::iterator _iter;
 };