Comment.
[dcpomatic.git] / src / lib / decoder.h
index 8378373c6e0e29c8c4ed45943a30a6817651ed2e..10bb4531032e4d0068340b14c985d9b401ac2fb5 100644 (file)
@@ -51,7 +51,14 @@ protected:
         */
        virtual void seek (ContentTime time, bool accurate) = 0;
 
-       virtual bool pass () = 0;
+       enum PassReason {
+               PASS_REASON_VIDEO,
+               PASS_REASON_AUDIO,
+               PASS_REASON_SUBTITLE
+       };
+
+       /** @return true if this decoder has already returned all its data and will give no more */
+       virtual bool pass (PassReason, bool accurate) = 0;
 };
 
 #endif