Fix build again.
[dcpomatic.git] / src / lib / ab_transcode_job.cc
index 4ffdd9af6b815cbe6c572d1e72a336e82ce0445b..a204677db34910be180bfd9a94fa22bd20857ab5 100644 (file)
@@ -25,6 +25,7 @@
 #include "ab_transcoder.h"
 #include "config.h"
 #include "encoder.h"
+#include "log.h"
 
 #include "i18n.h"
 
@@ -59,9 +60,13 @@ ABTranscodeJob::run ()
                set_progress (1);
                set_state (FINISHED_OK);
 
+               _film->log()->log ("A/B transcode job completed successfully");
+
        } catch (std::exception& e) {
 
+               set_progress (1);
                set_state (FINISHED_ERROR);
-
+               _film->log()->log (String::compose ("A/B transcode job failed (%1)", e.what()));
+               throw;
        }
 }