diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-13 00:04:23 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-13 00:04:23 +0000 |
| commit | 264583479e79b481251f1772b228f82cd77552d3 (patch) | |
| tree | 868f3347c1784ecde6ee626f6799334f3ef235b6 /src/lib/config.cc | |
| parent | f80010debf14112a632f42ddc7588995698b3d19 (diff) | |
swaroop: only allow playback if configured lock file is present.v2.13.72
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index b64690aad..31ae15b36 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -177,6 +177,7 @@ Config::set_defaults () _player_watermark_period = 1; _player_watermark_duration = 50; _allow_spl_editing = true; + _player_lock_file = boost::none; #endif _allowed_dcp_frame_rates.clear (); @@ -529,6 +530,7 @@ try _required_monitors.push_back(Monitor(i)); } _allow_spl_editing = f.optional_bool_child("AllowSPLEditing").get_value_or(true); + _player_lock_file = f.optional_string_child("PlayerLockFile"); #endif /* Replace any cinemas from config.xml with those from the configured file */ @@ -942,6 +944,9 @@ Config::write_config () const i.as_xml(root->add_child("RequiredMonitor")); } root->add_child("AllowSPLEditing")->add_child_text(_allow_spl_editing ? "1" : "0"); + if (_player_lock_file) { + root->add_child("PlayerLockFile")->add_child_text(_player_lock_file->string()); + } #endif try { |
