summaryrefslogtreecommitdiff
path: root/src/lib/transcode_job.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-28 10:39:03 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-28 21:13:15 +0100
commit94ab538738526948c5a52ed1222be1e484255541 (patch)
treef14be732d23dfac5ee41149eaee2db43b1710d32 /src/lib/transcode_job.h
parentd41a59b6ef7a8c935f182d498ae4df0bdd66ba02 (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.h21
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
+