Use an enum instead of a bool to specify blocking/non-blocking.
[dcpomatic.git] / src / lib / butler.h
index 498af8d86af821f9bd3c52db0d0d936b8171e40a..529b7383d0b30a9fb84cef51302a26f6ac60cbca 100644 (file)
@@ -72,7 +72,12 @@ public:
                std::string summary () const;
        };
 
-       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get_video (bool blocking, Error* e = 0);
+       enum class Behaviour {
+               BLOCKING,
+               NON_BLOCKING
+       };
+
+       std::pair<std::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get_video (Behaviour behaviour, Error* e = nullptr);
        boost::optional<dcpomatic::DCPTime> get_audio (float* out, Frame frames);
        boost::optional<TextRingBuffers::Data> get_closed_caption ();