diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-28 10:39:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-28 21:08:08 +0100 |
| commit | a2e41d9a95b6e0000f3a54f513214130f8b6ca9f (patch) | |
| tree | 8387b4fe016bbd7fad09526a872ae5ef295f4d5a /src/lib/transcode_job.h | |
| parent | 4ee083dc0862b30325c709e913772a6898378d0e (diff) | |
Rearrange checking (and re-examining) content.
Most importantly, checking of content for changes before making
a DCP is now done in the TranscodeJob (rather than being in a
separate job). This makes things a little neater and also makes
the batch converter less confusing when you add a job whose content
has changed.
Diffstat (limited to 'src/lib/transcode_job.h')
| -rw-r--r-- | src/lib/transcode_job.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h index 030e22bef..368a9b685 100644 --- a/src/lib/transcode_job.h +++ b/src/lib/transcode_job.h @@ -19,6 +19,10 @@ */ +#ifndef DCPOMATIC_TRANSCODE_JOB_H +#define DCPOMATIC_TRANSCODE_JOB_H + + /** @file src/transcode_job.h * @brief A job which transcodes from one format to another. */ @@ -27,6 +31,10 @@ #include "job.h" +/* Defined by Windows */ +#undef IGNORE + + class Encoder; @@ -36,7 +44,13 @@ class Encoder; class TranscodeJob : public Job { public: - explicit TranscodeJob (std::shared_ptr<const Film> film); + enum class ChangedBehaviour { + EXAMINE_THEN_STOP, + STOP, + IGNORE + }; + + explicit TranscodeJob (std::shared_ptr<const Film> film, ChangedBehaviour changed); ~TranscodeJob (); std::string name () const override; @@ -50,4 +64,9 @@ private: int remaining_time () const override; std::shared_ptr<Encoder> _encoder; + ChangedBehaviour _changed; }; + + +#endif + |
