From 63ea6b6c5ee64f8ee067c2b488d004b6dfe363e0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Oct 2012 22:13:53 +0100 Subject: Use boost::signals2; fix bugs with x-thread signalling. --- src/lib/transcoder.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib/transcoder.cc') 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 -#include +#include #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 f, shared_ptr 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 -- cgit v1.2.3