Try to fix the filter / AVFrame ownership.
[dcpomatic.git] / src / lib / server.h
index 4cb6f25631dacad1b94af089cbe4c6f6812f87c9..89aeca62632c3aeda94bff27b43e7fe494d6efa6 100644 (file)
@@ -28,7 +28,7 @@
 #include <boost/thread/condition.hpp>
 #include "log.h"
 
-class DeadlineWrapper;
+class Socket;
 
 /** @class ServerDescription
  *  @brief Class to describe a server to which we can send encoding work.
@@ -76,17 +76,17 @@ private:
 class Server
 {
 public:
-       Server (Log* log);
+       Server (boost::shared_ptr<Log> log);
 
        void run (int num_threads);
 
 private:
        void worker_thread ();
-       int process (boost::shared_ptr<DeadlineWrapper> wrapper);
+       int process (boost::shared_ptr<Socket> socket);
 
        std::vector<boost::thread *> _worker_threads;
-       std::list<boost::shared_ptr<DeadlineWrapper> > _queue;
+       std::list<boost::shared_ptr<Socket> > _queue;
        boost::mutex _worker_mutex;
        boost::condition _worker_condition;
-       Log* _log;
+       boost::shared_ptr<Log> _log;
 };