Remove PassReason stuff.
[dcpomatic.git] / src / lib / video_decoder.cc
index 6393fcbb26348c8f69d95c0a4b57969e273b25f5..9d165ab02f810b7d7e4730ff1617115f3a57eafb 100644 (file)
@@ -96,7 +96,7 @@ VideoDecoder::get_video (Frame frame, bool accurate)
                                break;
                        }
 
-                       if (pass (PASS_REASON_VIDEO)) {
+                       if (pass ()) {
                                /* The decoder has nothing more for us */
                                break;
                        }
@@ -113,7 +113,7 @@ VideoDecoder::get_video (Frame frame, bool accurate)
                dec = decoded_video (frame);
        } else {
                /* Any frame will do: use the first one that comes out of pass() */
-               while (_decoded_video.empty() && !pass (PASS_REASON_VIDEO)) {}
+               while (_decoded_video.empty() && !pass ()) {}
                if (!_decoded_video.empty ()) {
                        dec.push_back (_decoded_video.front ());
                }