diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-02 00:39:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-02 00:39:36 +0100 |
| commit | 7bf9cf9c047a2df19e19d557a86f34585453660d (patch) | |
| tree | 66cc1bb628f41ef49620b441b0f14b126b54857d /src/lib | |
| parent | 7a9d77bc3573d85a5066e3472ae15b8b700a226c (diff) | |
Add KDM debug log file option.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 6 | ||||
| -rw-r--r-- | src/lib/config.h | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index dc33b26bc..f298c587b 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -191,6 +191,7 @@ Config::set_defaults() _video_view_type = VIDEO_VIEW_SIMPLE; _respect_kdm_validity_periods = true; _player_debug_log_file = boost::none; + _kdm_debug_log_file = boost::none; _player_content_directory = boost::none; _player_playlist_directory = boost::none; _player_kdm_directory = boost::none; @@ -616,6 +617,7 @@ try } _respect_kdm_validity_periods = f.optional_bool_child("RespectKDMValidityPeriods").get_value_or(true); _player_debug_log_file = f.optional_string_child("PlayerDebugLogFile"); + _kdm_debug_log_file = f.optional_string_child("KDMDebugLogFile"); _player_content_directory = f.optional_string_child("PlayerContentDirectory"); _player_playlist_directory = f.optional_string_child("PlayerPlaylistDirectory"); _player_kdm_directory = f.optional_string_child("PlayerKDMDirectory"); @@ -1089,6 +1091,10 @@ Config::write_config() const /* [XML] PlayerLogFile Filename to use for player debug logs. */ cxml::add_text_child(root, "PlayerDebugLogFile", _player_debug_log_file->string()); } + if (_kdm_debug_log_file) { + /* [XML] KDMLogFile Filename to use for KDM creator debug logs. */ + cxml::add_text_child(root, "KDMDebugLogFile", _kdm_debug_log_file->string()); + } if (_player_content_directory) { /* [XML] PlayerContentDirectory Directory to use for player content in the dual-screen mode. */ cxml::add_text_child(root, "PlayerContentDirectory", _player_content_directory->string()); diff --git a/src/lib/config.h b/src/lib/config.h index f598ffbc6..d9a95ebfd 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -110,6 +110,7 @@ public: PLAYER_CONTENT_DIRECTORY, PLAYER_PLAYLIST_DIRECTORY, PLAYER_DEBUG_LOG, + KDM_DEBUG_LOG, HISTORY, SHOW_EXPERIMENTAL_AUDIO_PROCESSORS, AUDIO_MAPPING, @@ -576,6 +577,10 @@ public: return _player_debug_log_file; } + boost::optional<boost::filesystem::path> kdm_debug_log_file() const { + return _kdm_debug_log_file; + } + boost::optional<boost::filesystem::path> player_content_directory() const { return _player_content_directory; } @@ -1122,6 +1127,10 @@ public: changed(PLAYER_DEBUG_LOG); } + void set_kdm_debug_log_file(boost::filesystem::path p) { + maybe_set(_kdm_debug_log_file, p, KDM_DEBUG_LOG); + } + void set_player_content_directory(boost::filesystem::path p) { maybe_set(_player_content_directory, p, PLAYER_CONTENT_DIRECTORY); } @@ -1457,6 +1466,7 @@ private: bool _respect_kdm_validity_periods; /** Log file containing debug information for the player */ boost::optional<boost::filesystem::path> _player_debug_log_file; + boost::optional<boost::filesystem::path> _kdm_debug_log_file; /** A directory containing DCPs whose contents are presented to the user in the dual-screen player mode. DCPs on the list can be loaded for playback. |
