summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-27 00:03:17 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-27 00:03:17 +0100
commitb210e46788f6cd368657dbef602cf91e12adc99a (patch)
treeedfded8651adbf9b5892d6b3f99da7a78b1bdead /src/lib/config.h
parent29196ecc58f92432c21bac47dc5a59c6408524b4 (diff)
Add option to use (or not) ISDCF names by default.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 956d8aa9b..177fffc37 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -556,6 +556,10 @@ public:
return _auto_crop_threshold;
}
+ bool use_isdcf_name_by_default () const {
+ return _use_isdcf_name_by_default;
+ }
+
/* SET (mostly) */
void set_master_encoding_threads (int n) {
@@ -1068,6 +1072,10 @@ public:
maybe_set (_auto_crop_threshold, threshold, AUTO_CROP_THRESHOLD);
}
+ void set_use_isdcf_name_by_default (bool use) {
+ maybe_set (_use_isdcf_name_by_default, use);
+ }
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
/** Emitted if read() failed on an existing Config file. There is nothing
@@ -1282,6 +1290,7 @@ private:
std::vector<dcp::LanguageTag> _custom_languages;
boost::optional<boost::filesystem::path> _add_files_path;
double _auto_crop_threshold;
+ bool _use_isdcf_name_by_default;
static int const _current_version;