diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-10-15 22:26:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-10-15 22:42:48 +0200 |
| commit | a3c663012ae1134bef0c36304d71ab319114cfcb (patch) | |
| tree | 5eb851e1a7542852a80c345bd250ac444885b6fe /src/lib/butler.h | |
| parent | eebcd9cc28478b193ded1cd820169fd89e6072c5 (diff) | |
Use an enum instead of a bool to specify blocking/non-blocking.
Diffstat (limited to 'src/lib/butler.h')
| -rw-r--r-- | src/lib/butler.h | 7 |
1 files changed, 6 insertions, 1 deletions
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<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 (); |
