X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbutler.h;h=529b7383d0b30a9fb84cef51302a26f6ac60cbca;hb=a3c663012ae1134bef0c36304d71ab319114cfcb;hp=498af8d86af821f9bd3c52db0d0d936b8171e40a;hpb=8044bcbf5ec36ced1d507742c6c3d654dd961ed9;p=dcpomatic.git diff --git a/src/lib/butler.h b/src/lib/butler.h index 498af8d86..529b7383d 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -72,7 +72,12 @@ public: std::string summary () const; }; - std::pair, dcpomatic::DCPTime> get_video (bool blocking, Error* e = 0); + enum class Behaviour { + BLOCKING, + NON_BLOCKING + }; + + std::pair, dcpomatic::DCPTime> get_video (Behaviour behaviour, Error* e = nullptr); boost::optional get_audio (float* out, Frame frames); boost::optional get_closed_caption ();