summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-25 13:58:06 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-25 14:03:20 +0100
commitee57b4a0e7432deac347c061a88baff4ec51c083 (patch)
treed46feb1d312b7e22e1ab594b468a73b3e517728b /src
parent9276310e6c9be6148ea8b465b44af55413dc0dc0 (diff)
Add debug log type for encode servers.
Diffstat (limited to 'src')
-rw-r--r--src/lib/dcpomatic_log.h2
-rw-r--r--src/lib/log_entry.cc1
-rw-r--r--src/lib/log_entry.h1
-rw-r--r--src/wx/full_config_dialog.cc9
4 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_log.h b/src/lib/dcpomatic_log.h
index d5d230414..fdfe8a2c3 100644
--- a/src/lib/dcpomatic_log.h
+++ b/src/lib/dcpomatic_log.h
@@ -42,4 +42,6 @@ extern boost::shared_ptr<Log> dcpomatic_log;
#define LOG_DEBUG_PLAYER_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_DEBUG_PLAYER);
#define LOG_DEBUG_AUDIO_ANALYSIS(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS);
#define LOG_DEBUG_AUDIO_ANALYSIS_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS);
+#define LOG_DEBUG_ENCODE_SERVERS(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_DEBUG_ENCODE_SERVERS);
+#define LOG_DEBUG_ENCODE_SERVERS_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_DEBUG_ENCODE_SERVERS);
diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc
index 2af2c0f25..6f232c3f3 100644
--- a/src/lib/log_entry.cc
+++ b/src/lib/log_entry.cc
@@ -35,6 +35,7 @@ int const LogEntry::TYPE_DEBUG_VIDEO_VIEW = 0x080;
int const LogEntry::TYPE_DISK = 0x100;
int const LogEntry::TYPE_DEBUG_PLAYER = 0x200;
int const LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS = 0x400;
+int const LogEntry::TYPE_DEBUG_ENCODE_SERVERS = 0x800;
using std::string;
diff --git a/src/lib/log_entry.h b/src/lib/log_entry.h
index 50b8bc1a6..3c4c3c4f8 100644
--- a/src/lib/log_entry.h
+++ b/src/lib/log_entry.h
@@ -39,6 +39,7 @@ public:
static const int TYPE_DISK;
static const int TYPE_DEBUG_PLAYER; ///< the Player class
static const int TYPE_DEBUG_AUDIO_ANALYSIS; ///< audio analysis job
+ static const int TYPE_DEBUG_ENCODE_SERVERS;
explicit LogEntry (int type);
virtual ~LogEntry () {}
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc
index c41236096..fc8d96fc6 100644
--- a/src/wx/full_config_dialog.cc
+++ b/src/wx/full_config_dialog.cc
@@ -1262,6 +1262,7 @@ public:
, _log_debug_video_view (0)
, _log_debug_player (0)
, _log_debug_audio_analysis (0)
+ , _log_debug_encode_servers (0)
{}
wxString GetName () const
@@ -1396,6 +1397,8 @@ private:
t->Add (_log_debug_player, 1, wxEXPAND | wxALL);
_log_debug_audio_analysis = new CheckBox (_panel, _("Debug: audio analysis"));
t->Add (_log_debug_audio_analysis, 1, wxEXPAND | wxALL);
+ _log_debug_encode_servers = new CheckBox (_panel, _("Debug: encode servers"));
+ t->Add (_log_debug_encode_servers, 1, wxEXPAND | wxALL);
table->Add (t, 0, wxALL, 6);
}
@@ -1427,6 +1430,7 @@ private:
_log_debug_video_view->Bind (wxEVT_CHECKBOX, boost::bind (&AdvancedPage::log_changed, this));
_log_debug_player->Bind (wxEVT_CHECKBOX, boost::bind (&AdvancedPage::log_changed, this));
_log_debug_audio_analysis->Bind (wxEVT_CHECKBOX, boost::bind (&AdvancedPage::log_changed, this));
+ _log_debug_encode_servers->Bind (wxEVT_CHECKBOX, boost::bind (&AdvancedPage::log_changed, this));
#ifdef DCPOMATIC_WINDOWS
_win32_console->Bind (wxEVT_CHECKBOX, boost::bind (&AdvancedPage::win32_console_changed, this));
#endif
@@ -1459,6 +1463,7 @@ private:
checked_set (_log_debug_video_view, config->log_types() & LogEntry::TYPE_DEBUG_VIDEO_VIEW);
checked_set (_log_debug_player, config->log_types() & LogEntry::TYPE_DEBUG_PLAYER);
checked_set (_log_debug_audio_analysis, config->log_types() & LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS);
+ checked_set (_log_debug_encode_servers, config->log_types() & LogEntry::TYPE_DEBUG_ENCODE_SERVERS);
checked_set (_frames_in_memory_multiplier, config->frames_in_memory_multiplier());
#ifdef DCPOMATIC_WINDOWS
checked_set (_win32_console, config->win32_console());
@@ -1547,6 +1552,9 @@ private:
if (_log_debug_audio_analysis->GetValue()) {
types |= LogEntry::TYPE_DEBUG_AUDIO_ANALYSIS;
}
+ if (_log_debug_encode_servers->GetValue()) {
+ types |= LogEntry::TYPE_DEBUG_ENCODE_SERVERS;
+ }
Config::instance()->set_log_types (types);
}
@@ -1576,6 +1584,7 @@ private:
wxCheckBox* _log_debug_video_view;
wxCheckBox* _log_debug_player;
wxCheckBox* _log_debug_audio_analysis;
+ wxCheckBox* _log_debug_encode_servers;
#ifdef DCPOMATIC_WINDOWS
wxCheckBox* _win32_console;
#endif