diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-06 16:38:00 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-06 16:38:00 +0000 |
| commit | 4c7416beb0efbf74868f756ddf8013f93c5841dc (patch) | |
| tree | 8389b81f0021d2d6139396e36e49eeeabb804d85 /src/lib/encoder.h | |
| parent | f8678dcae5f90eb946ad6e51d9a62e0c02bc63e3 (diff) | |
| parent | 8473e86b22c47d5345e62871babec04be51a4642 (diff) | |
Merge branch '1.0' of /home/carl/git/dvdomatic into 1.0
Diffstat (limited to 'src/lib/encoder.h')
| -rw-r--r-- | src/lib/encoder.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/encoder.h b/src/lib/encoder.h index 9fcba560f..902dae2d5 100644 --- a/src/lib/encoder.h +++ b/src/lib/encoder.h @@ -46,6 +46,7 @@ class DCPVideoFrame; class EncodedData; class Writer; class Job; +class ServerFinder; /** @class Encoder * @brief Encoder to J2K and WAV for DCP. @@ -84,9 +85,8 @@ private: void encoder_thread (boost::optional<ServerDescription>); void terminate_threads (); - void broadcast_thread (); - void listen_thread (); void add_worker_threads (ServerDescription); + void server_found (ServerDescription); /** Film that we are encoding */ boost::shared_ptr<const Film> _film; @@ -113,10 +113,7 @@ private: boost::condition _condition; boost::shared_ptr<Writer> _writer; - - /** A thread to periodically issue broadcasts to find encoding servers */ - boost::thread* _broadcast_thread; - boost::thread* _listen_thread; + boost::shared_ptr<ServerFinder> _server_finder; }; #endif |
