Try to fix the filter / AVFrame ownership.
[dcpomatic.git] / src / lib / sndfile_decoder.h
index e16eab6731e2f23d4bc32e9f4e6dfd1a8c2fced7..9489cb5ec5b56e4a6b076ff0da1360e643a19734 100644 (file)
@@ -45,10 +45,12 @@ class SndfileDecoder : public AudioDecoder
 {
 public:
        SndfileDecoder (boost::shared_ptr<Film>, DecodeOptions);
+       ~SndfileDecoder ();
 
        bool pass ();
 
 private:
-       std::vector<SNDFILE*> open_files (sf_count_t &);
-       void close_files (std::vector<SNDFILE*> const &);
+       std::vector<SNDFILE*> _sndfiles;
+       sf_count_t _done;
+       sf_count_t _frames;
 };