diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-16 11:24:33 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-16 11:24:33 +0000 |
| commit | 7feda7e97b67917d240585a09ed6c50d4605a83d (patch) | |
| tree | 9e96af8220a0c221c3da5e3b9a1f942bd89a7321 /src/lib/transcode_job.cc | |
| parent | d4467a8a07fa3411ce2fabc80e533e322a4fb796 (diff) | |
Add option to auto-upload to the TMS (#794).
Diffstat (limited to 'src/lib/transcode_job.cc')
| -rw-r--r-- | src/lib/transcode_job.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index b442d8035..a879e8c77 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -22,6 +22,8 @@ */ #include "transcode_job.h" +#include "upload_job.h" +#include "job_manager.h" #include "film.h" #include "transcoder.h" #include "log.h" @@ -86,6 +88,11 @@ TranscodeJob::run () LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), fps); _transcoder.reset (); + if (_film->upload_after_make_dcp ()) { + shared_ptr<Job> job (new UploadJob (_film)); + JobManager::instance()->add (job); + } + } catch (...) { _transcoder.reset (); throw; |
