swaroop: take ownership of config file if we're run as root.
[dcpomatic.git] / src / lib / butler.h
index 4322c401dc1b62824470c8a0d7df0aeaf35a3ecf..fb133d10809413298364faba4e02a8d62c42c5b1 100644 (file)
@@ -41,7 +41,13 @@ public:
        ~Butler ();
 
        void seek (DCPTime position, bool accurate);
-       std::pair<boost::shared_ptr<PlayerVideo>, DCPTime> get_video ();
+
+       enum Error {
+               NONE,
+               AGAIN
+       };
+
+       std::pair<boost::shared_ptr<PlayerVideo>, DCPTime> get_video (Error* e = 0);
        boost::optional<DCPTime> get_audio (float* out, Frame frames);
        boost::optional<TextRingBuffers::Data> get_closed_caption ();