diff options
Diffstat (limited to 'src/lib/butler.h')
| -rw-r--r-- | src/lib/butler.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/lib/butler.h b/src/lib/butler.h index 6263d6143..e13843c90 100644 --- a/src/lib/butler.h +++ b/src/lib/butler.h @@ -49,11 +49,23 @@ public: void seek (dcpomatic::DCPTime position, bool accurate); - enum Error { - NONE, - AGAIN, - DIED, - FINISHED + class Error { + public: + enum Code{ + NONE, + AGAIN, + DIED, + FINISHED + }; + + Error() + : code (NONE) + {} + + Code code; + std::string message; + + std::string summary () const; }; std::pair<boost::shared_ptr<PlayerVideo>, dcpomatic::DCPTime> get_video (bool blocking, Error* e = 0); @@ -94,6 +106,7 @@ private: int _suspended; bool _finished; bool _died; + std::string _died_message; bool _stop_thread; AudioMapping _audio_mapping; |
