diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-29 00:54:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 19:36:09 +0200 |
| commit | 8d998d5e325e06fdb0075483048cd56dca03273f (patch) | |
| tree | d9ccc969bc3f8f2fd8d7084f0a819c17cb614ef6 /src/lib/dcp_transcode_job.cc | |
| parent | df5228d00d70d68218e7f606131a0c5fa2caba9f (diff) | |
Clean up a hack by adding DCPTranscodeJob.
Diffstat (limited to 'src/lib/dcp_transcode_job.cc')
| -rw-r--r-- | src/lib/dcp_transcode_job.cc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/lib/dcp_transcode_job.cc b/src/lib/dcp_transcode_job.cc new file mode 100644 index 000000000..e9ff4f4e0 --- /dev/null +++ b/src/lib/dcp_transcode_job.cc @@ -0,0 +1,46 @@ +/* + Copyright (C) 2021 Carl Hetherington <cth@carlh.net> + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. + +*/ + + +#include "config.h" +#include "dcp_transcode_job.h" +#include "film.h" +#include "job_manager.h" +#include "upload_job.h" + + +using std::make_shared; +using std::shared_ptr; + + +DCPTranscodeJob::DCPTranscodeJob (shared_ptr<const Film> film, ChangedBehaviour changed) + : TranscodeJob (film, changed) +{ + +} + + +void +DCPTranscodeJob::post_transcode () +{ + if (Config::instance()->upload_after_make_dcp()) { + JobManager::instance()->add(make_shared<UploadJob>(_film)); + } +} |
