Merge.
[dcpomatic.git] / src / lib / encoder.h
index 3d0597cfad5b533508e1dc28f907f0ff4a093e90..20f2951b64cbb63ab4d1020ed1a60cba99bb5b6d 100644 (file)
@@ -37,7 +37,7 @@
 #include <stdint.h>
 
 class Film;
-class ServerDescription;
+class EncodeServerDescription;
 class DCPVideo;
 class Writer;
 class Job;
@@ -53,7 +53,7 @@ class PlayerVideo;
 class Encoder : public boost::noncopyable, public ExceptionStore
 {
 public:
-       Encoder (boost::shared_ptr<const Film>, boost::weak_ptr<Job>, boost::shared_ptr<Writer>);
+       Encoder (boost::shared_ptr<const Film>, boost::shared_ptr<Writer>);
        virtual ~Encoder ();
 
        /** Called to indicate that a processing run is about to begin */
@@ -75,13 +75,12 @@ private:
        void enqueue (boost::shared_ptr<PlayerVideo> f);
        void frame_done ();
 
-       void encoder_thread (boost::optional<ServerDescription>);
+       void encoder_thread (boost::optional<EncodeServerDescription>);
        void terminate_threads ();
        void servers_list_changed ();
 
        /** Film that we are encoding */
        boost::shared_ptr<const Film> _film;
-       boost::weak_ptr<Job> _job;
 
        /** Mutex for _time_history and _video_frames_enqueued */
        mutable boost::mutex _state_mutex;