Tidy up test film naming.
[dcpomatic.git] / src / lib / transcode_job.cc
index e79be09feb04779d8603c20bbd2bc881b9fc09b2..fe34867b250123a8722f5fe83c15ac74f403c2ab 100644 (file)
@@ -39,8 +39,9 @@ using namespace boost;
  *  @param o Options.
  *  @param l A log that we can write to.
  */
-TranscodeJob::TranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const Options> o, Log* l)
-       : Job (s, o, l)
+TranscodeJob::TranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const Options> o, Log* l, shared_ptr<Job> req)
+       : Job (s, l, req)
+       , _opt (o)
 {
        
 }
@@ -48,7 +49,7 @@ TranscodeJob::TranscodeJob (shared_ptr<const FilmState> s, shared_ptr<const Opti
 string
 TranscodeJob::name () const
 {
-       return String::compose ("Transcode %1", _fs->name);
+       return String::compose ("Transcode %1", _fs->name());
 }
 
 void
@@ -107,5 +108,5 @@ TranscodeJob::remaining_time () const
                return 0;
        }
 
-       return ((_fs->length - _encoder->last_frame()) / fps);
+       return ((_fs->dcp_length() - _encoder->last_frame()) / fps);
 }