Comment.
[dcpomatic.git] / src / lib / decoder.h
index 0703a542686933e3065f3b3cd5a343498ef0cebd..10bb4531032e4d0068340b14c985d9b401ac2fb5 100644 (file)
@@ -26,8 +26,6 @@
 
 #include "types.h"
 #include "dcpomatic_time.h"
-#include <boost/shared_ptr.hpp>
-#include <boost/weak_ptr.hpp>
 #include <boost/utility.hpp>
 
 class Decoded;
@@ -40,7 +38,8 @@ class Decoder : public boost::noncopyable
 public:
        virtual ~Decoder () {}
 
-protected:     
+protected:
+       friend class AudioDecoderStream;
 
        /** Seek so that the next pass() will yield the next thing
         *  (video/sound frame, subtitle etc.) at or after the requested
@@ -57,8 +56,9 @@ protected:
                PASS_REASON_AUDIO,
                PASS_REASON_SUBTITLE
        };
-       
-       virtual bool pass (PassReason reason) = 0;
+
+       /** @return true if this decoder has already returned all its data and will give no more */
+       virtual bool pass (PassReason, bool accurate) = 0;
 };
 
 #endif