Try to not start jobs if a dependant fails.
[dcpomatic.git] / src / lib / ab_transcode_job.cc
index 1a6104251040036b33c2357acb42075e6d2fa3a5..fd8236bf028ec54a2fb10d565bc6e9be433fb2f3 100644 (file)
@@ -35,8 +35,8 @@ 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 ();
@@ -46,9 +46,7 @@ ABTranscodeJob::ABTranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const
 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