summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-31 02:24:01 +0200
committerCarl Hetherington <cth@carlh.net>2024-07-21 23:02:24 +0200
commitd520dad61113d9b26f229b8efc8550a49101de9c (patch)
treeabf0d2b3ffa82fdd96f6eea0e1ef73f568fd30bb /src/lib/config.h
parent13d361378d608c086a665c12a5e1920195649d51 (diff)
Add an advanced option to check data against the frame info file when making hashes (#2758).
This should show up corruption that happens on the disk/storage, i.e. between DCP-o-matic writing the MXF and it being read back in again for hashing.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 1f13381b7..8394f612e 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -115,6 +115,7 @@ public:
AUDIO_MAPPING,
AUTO_CROP_THRESHOLD,
ALLOW_SMPTE_BV20,
+ CHECK_DISK_WRITES,
ISDCF_NAME_PART_LENGTH,
ALLOW_ANY_CONTAINER,
#ifdef DCPOMATIC_GROK
@@ -644,6 +645,10 @@ public:
return _allow_smpte_bv20;
}
+ bool check_disk_writes() const {
+ return _check_disk_writes;
+ }
+
#ifdef DCPOMATIC_GROK
class Grok
{
@@ -1209,6 +1214,10 @@ public:
maybe_set(_allow_smpte_bv20, allow, ALLOW_SMPTE_BV20);
}
+ void set_check_disk_writes(bool allow) {
+ maybe_set(_check_disk_writes, allow, CHECK_DISK_WRITES);
+ }
+
#ifdef DCPOMATIC_GROK
void set_grok(Grok const& grok);
#endif
@@ -1462,6 +1471,7 @@ private:
boost::optional<int> _main_content_divider_sash_position;
DefaultAddFileLocation _default_add_file_location;
bool _allow_smpte_bv20;
+ bool _check_disk_writes;
int _isdcf_name_part_length;
bool _enable_player_http_server;
int _player_http_server_port;