diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-09-26 13:51:05 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-09-26 13:51:05 +0100 |
| commit | be3ec98436ca28554d9414f5d5a2e3fa18846f3d (patch) | |
| tree | 93cff812499cd1f95a94764a735984c6f2bb2dd5 /src/lib/config.cc | |
| parent | 76a2964f5b1a6f6cf4ead13895ae9509029cc248 (diff) | |
Add background image configuration to swaroop variant.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 5e953382d..b61b1d054 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -169,6 +169,9 @@ Config::set_defaults () _player_log_file = boost::none; _player_dcp_directory = boost::none; _player_kdm_directory = boost::none; +#ifdef DCPOMATIC_VARIANT_SWAROOP + _player_background_image = boost::none; +#endif _allowed_dcp_frame_rates.clear (); _allowed_dcp_frame_rates.push_back (24); @@ -501,6 +504,9 @@ try _player_log_file = f.optional_string_child("PlayerLogFile"); _player_dcp_directory = f.optional_string_child("PlayerDCPDirectory"); _player_kdm_directory = f.optional_string_child("PlayerKDMDirectory"); +#ifdef DCPOMATIC_VARIANT_SWAROOP + _player_background_image = f.optional_string_child("PlayerBackgroundImage"); +#endif /* Replace any cinemas from config.xml with those from the configured file */ if (boost::filesystem::exists (_cinemas_file)) { @@ -898,6 +904,11 @@ Config::write_config () const if (_player_kdm_directory) { root->add_child("PlayerKDMDirectory")->add_child_text(_player_kdm_directory->string()); } +#ifdef DCPOMATIC_VARIANT_SWAROOP + if (_player_background_image) { + root->add_child("PlayerBackgroundImage")->add_child_text(_player_background_image->string()); + } +#endif try { doc.write_to_file_formatted(config_file().string()); |
