Attempt to tidy up internal APIs slightly.
[dcpomatic.git] / src / lib / encoder.h
index 5816fe12f64c88c69d0c19ef47ece2b2744fe8e5..27ae64aac589ba577578fb874fcafdffe8557b40 100644 (file)
@@ -62,7 +62,7 @@ public:
        void begin ();
 
        /** Called to pass a bit of video to be encoded as the next DCP frame */
-       void encode (boost::shared_ptr<PlayerVideo> f);
+       void encode (boost::shared_ptr<PlayerVideo> f, DCPTime time);
 
        /** Called when a processing run has finished */
        void end ();
@@ -107,6 +107,7 @@ private:
        Waker _waker;
 
        boost::shared_ptr<PlayerVideo> _last_player_video;
+       boost::optional<DCPTime> _last_player_video_time;
 
        boost::signals2::scoped_connection _server_found_connection;
 };