FFmpegContent does not need audio_length().
[dcpomatic.git] / src / lib / transcode_job.cc
index c7102879413b7f3a3a628a9596557c68b14b7aa0..1a2202ad2f2b91b9914297c07c9852ff227b3cb7 100644 (file)
@@ -54,6 +54,12 @@ TranscodeJob::name () const
        return String::compose (_("Transcode %1"), _film->name());
 }
 
+string
+TranscodeJob::json_name () const
+{
+       return N_("transcode");
+}
+
 void
 TranscodeJob::run ()
 {
@@ -70,9 +76,6 @@ TranscodeJob::run ()
                _transcoder.reset ();
 
        } catch (...) {
-               set_progress (1);
-               set_state (FINISHED_ERROR);
-               LOG_ERROR_NC (N_("Transcode job failed or cancelled"));
                _transcoder.reset ();
                throw;
        }
@@ -95,7 +98,7 @@ TranscodeJob::status () const
        s << Job::status ();
 
        if (!finished () && !_transcoder->finishing ()) {
-               /* TRANSLATORS: fps here is an abbreviation for frames per second */
+               /// TRANSLATORS: fps here is an abbreviation for frames per second
                s << "; " << fixed << setprecision (1) << fps << " " << _("fps");
        }