Don't bother decoding video frames when we're seeking around trying to find subtitles.
[dcpomatic.git] / src / lib / sndfile_decoder.h
index 5ebe1da7b251852ee523df1e24fc9597406570f2..68c8633a0d604df5e7e6aa3f19dfc07993422d2e 100644 (file)
@@ -30,14 +30,13 @@ public:
        SndfileDecoder (boost::shared_ptr<const SndfileContent> c);
        ~SndfileDecoder ();
 
-       void seek (ContentTime, bool);
-
        int audio_channels () const;
        ContentTime audio_length () const;
        int audio_frame_rate () const;
 
 private:
-       bool pass ();
+       bool pass (PassReason);
+       void seek (ContentTime, bool);
        
        boost::shared_ptr<const SndfileContent> _sndfile_content;
        SNDFILE* _sndfile;