New DCPTime/ContentTime types.
[dcpomatic.git] / src / lib / transcode_job.cc
index a0537cd428b343f2190bd07a57bdaee8ad65953c..fd4dfcef6dfc10c89b699777514377b1b47820b2 100644 (file)
@@ -103,6 +103,7 @@ TranscodeJob::status () const
        return s.str ();
 }
 
+/** @return Approximate remaining time in seconds */
 int
 TranscodeJob::remaining_time () const
 {
@@ -120,6 +121,5 @@ TranscodeJob::remaining_time () const
        }
 
        /* Compute approximate proposed length here, as it's only here that we need it */
-       VideoFrame const left = _film->time_to_video_frames (_film->length ()) - t->video_frames_out();
-       return left / fps;
+       return (_film->length().frames (_film->video_frame_rate ()) - t->video_frames_out()) / fps;
 }