Fix the build for older macOS.
[dcpomatic.git] / src / lib / encoder.cc
index 16d9923141080fc42bc0aacbcee039e6e1585db2..1d688c31868d49450140e7381994f3431fe6bb5d 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+
 /** @file  src/encoder.cc
  *  @brief A class which takes a Film and some Options, then uses those to encode the film
  *  into some output format.
  *  as a parameter to the constructor.
  */
 
+
 #include "encoder.h"
 #include "player.h"
 
 #include "i18n.h"
 
-using boost::weak_ptr;
-using boost::shared_ptr;
 
 /** Construct an encoder.
  *  @param film Film that we are encoding.
  *  @param job Job that this encoder is being used in.
  */
-Encoder::Encoder (shared_ptr<const Film> film, weak_ptr<Job> job)
+Encoder::Encoder (std::shared_ptr<const Film> film, std::weak_ptr<Job> job)
        : _film (film)
        , _job (job)
-       , _player (new Player (film, film->playlist ()))
+       , _player (new Player(film, Image::Alignment::PADDED))
 {
-       _player_video_connection = _player->Video.connect (bind (&Encoder::video, this, _1, _2));
-       _player_audio_connection = _player->Audio.connect (bind (&Encoder::audio, this, _1, _2));
-       _player_subtitle_connection = _player->Subtitle.connect (bind (&Encoder::subtitle, this, _1, _2));
+
 }