Revert "Avoid decoding other packets when looking for subs."
[dcpomatic.git] / src / lib / dcp_decoder.h
index 7d26139ba47ab6d62a403c066fc091aab30f1c89..6fdbd946af348dcd2f99a7d8306e5c8e6dabeff4 100644 (file)
@@ -30,14 +30,20 @@ namespace dcp {
 }
 
 class DCPContent;
-class Log;
+struct dcp_subtitle_within_dcp_test;
 
 class DCPDecoder : public VideoDecoder, public AudioDecoder, public SubtitleDecoder
 {
 public:
-       DCPDecoder (boost::shared_ptr<const DCPContent>);
+       DCPDecoder (boost::shared_ptr<const DCPContent>, bool fast);
+
+       std::list<boost::shared_ptr<dcp::Reel> > reels () const {
+               return _reels;
+       }
 
 private:
+       friend struct dcp_subtitle_within_dcp_test;
+
        bool pass ();
        void seek (ContentTime t, bool accurate);