Speculative fix for failure to pick up correct audio / subtitle streams.
[dcpomatic.git] / src / lib / ab_transcode_job.cc
index 1a6104251040036b33c2357acb42075e6d2fa3a5..89967bfcac42e7b47d33868fb4bef1a048e7954a 100644 (file)
@@ -35,20 +35,18 @@ using namespace boost;
  *  @param o Options.
  *  @Param l A log that we can write to.
  */
-ABTranscodeJob::ABTranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const Options> o, Log* l)
-       : Job (s, o, l)
+ABTranscodeJob::ABTranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const Options> o, Log* l, shared_ptr<Job> req)
+       : Job (s, o, l, req)
 {
        _fs_b.reset (new FilmState (*_fs));
-       _fs_b->scaler = Config::instance()->reference_scaler ();
-       _fs_b->filters = Config::instance()->reference_filters ();
+       _fs_b->set_scaler (Config::instance()->reference_scaler ());
+       _fs_b->set_filters (Config::instance()->reference_filters ());
 }
 
 string
 ABTranscodeJob::name () const
 {
-       stringstream s;
-       s << "A/B transcode " << _fs->name;
-       return s.str ();
+       return String::compose ("A/B transcode %1", _fs->name());
 }
 
 void