diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-24 22:13:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-24 22:13:53 +0100 |
| commit | 63ea6b6c5ee64f8ee067c2b488d004b6dfe363e0 (patch) | |
| tree | d248762556466fd076cfd20f2e6aa1d5d9544184 /src/lib/transcoder.cc | |
| parent | 977b36672892b14de4ecb68e98415c64946e8a93 (diff) | |
Use boost::signals2; fix bugs with x-thread signalling.
Diffstat (limited to 'src/lib/transcoder.cc')
| -rw-r--r-- | src/lib/transcoder.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index 8c02b7633..9515a4344 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -25,13 +25,13 @@ */ #include <iostream> -#include <sigc++/signal.h> +#include <boost/signals2.hpp> #include "transcoder.h" #include "encoder.h" #include "decoder_factory.h" -using namespace std; -using namespace boost; +using std::string; +using boost::shared_ptr; /** Construct a transcoder using a Decoder that we create and a supplied Encoder. * @param f Film that we are transcoding. @@ -46,8 +46,8 @@ Transcoder::Transcoder (shared_ptr<Film> f, shared_ptr<const Options> o, Job* j, { assert (_encoder); - _decoder->Video.connect (sigc::mem_fun (*e, &Encoder::process_video)); - _decoder->Audio.connect (sigc::mem_fun (*e, &Encoder::process_audio)); + _decoder->Video.connect (bind (&Encoder::process_video, e, _1, _2, _3)); + _decoder->Audio.connect (bind (&Encoder::process_audio, e, _1)); } /** Run the decoder, passing its output to the encoder, until the decoder |
