* @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)
{
}
string
TranscodeJob::name () const
{
- return String::compose ("Transcode %1", _fs->name);
+ return String::compose ("Transcode %1", _fs->name());
}
void
return 0;
}
- return ((_fs->length - _encoder->last_frame()) / fps);
+ return ((_fs->dcp_length() - _encoder->last_frame()) / fps);
}