summaryrefslogtreecommitdiff
path: root/src/lib/config.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-09-27 11:25:21 +0100
committerCarl Hetherington <cth@carlh.net>2018-09-27 11:25:21 +0100
commitf76453d0b78e5b71abbd9b4fcfda9e8eb0b61ad0 (patch)
tree2e486b2c2724d6a2d3ec10c6f0855e82aa7fbf5b /src/lib/config.cc
parentf169ad6ed7d4061c40802c7dea2e1abb04cdeb4b (diff)
Untested watermarking.
Diffstat (limited to 'src/lib/config.cc')
-rw-r--r--src/lib/config.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index abb775be8..d7fd74449 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -172,6 +172,7 @@ Config::set_defaults ()
#ifdef DCPOMATIC_VARIANT_SWAROOP
_player_background_image = boost::none;
_kdm_server_url = "http://localhost:8000/{CPL}";
+ _player_watermark = boost::none;
#endif
_allowed_dcp_frame_rates.clear ();
@@ -508,6 +509,7 @@ try
#ifdef DCPOMATIC_VARIANT_SWAROOP
_player_background_image = f.optional_string_child("PlayerBackgroundImage");
_kdm_server_url = f.optional_string_child("KDMServerURL").get_value_or("http://localhost:8000/{CPL}");
+ _player_watermark = f.optional_string_child("PlayerWatermark");
#endif
/* Replace any cinemas from config.xml with those from the configured file */
@@ -911,6 +913,9 @@ Config::write_config () const
root->add_child("PlayerBackgroundImage")->add_child_text(_player_background_image->string());
}
root->add_child("KDMServerURL")->add_child_text(_kdm_server_url);
+ if (_player_watermark) {
+ root->add_child("PlayerWatermark")->add_child_text(_player_watermark->string());
+ }
#endif
try {