summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-17 22:00:18 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-17 22:00:18 +0000
commita5be11a965c2c38442e4e069874e7e21b5b43a5c (patch)
tree9473211bc0918e7ccf844a3f8300a473e089fed4 /src/lib
parent9a7ca753829b7adbabde4cc0edd48c460ad4cffa (diff)
More player debugging for butler video-full states.v2.13.121
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dcpomatic_log.h1
-rw-r--r--src/lib/file_log.cc9
-rw-r--r--src/lib/file_log.h2
-rw-r--r--src/lib/log_entry.cc1
-rw-r--r--src/lib/log_entry.h1
5 files changed, 4 insertions, 10 deletions
diff --git a/src/lib/dcpomatic_log.h b/src/lib/dcpomatic_log.h
index 88d031fc7..2cec0c405 100644
--- a/src/lib/dcpomatic_log.h
+++ b/src/lib/dcpomatic_log.h
@@ -33,3 +33,4 @@ extern boost::shared_ptr<Log> dcpomatic_log;
#define LOG_WARNING_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_WARNING);
#define LOG_TIMING(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_TIMING);
#define LOG_DEBUG_ENCODE(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_DEBUG_ENCODE);
+#define LOG_DEBUG_PLAYER(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_DEBUG_PLAYER);
diff --git a/src/lib/file_log.cc b/src/lib/file_log.cc
index be532c10f..f6eaa58f8 100644
--- a/src/lib/file_log.cc
+++ b/src/lib/file_log.cc
@@ -33,14 +33,7 @@ using boost::shared_ptr;
FileLog::FileLog (boost::filesystem::path file)
: _file (file)
{
- _config_connection = Config::instance()->Changed.connect (boost::bind (&FileLog::config_changed, this));
- config_changed ();
-}
-
-void
-FileLog::config_changed ()
-{
- set_types (Config::instance()->log_types ());
+ set_types (Config::instance()->log_types());
}
void
diff --git a/src/lib/file_log.h b/src/lib/file_log.h
index 83f369609..53fbe4f76 100644
--- a/src/lib/file_log.h
+++ b/src/lib/file_log.h
@@ -29,9 +29,7 @@ public:
private:
void do_log (boost::shared_ptr<const LogEntry> entry);
- void config_changed ();
/** filename to write to */
boost::filesystem::path _file;
- boost::signals2::scoped_connection _config_connection;
};
diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc
index 8a6654811..6a36c3383 100644
--- a/src/lib/log_entry.cc
+++ b/src/lib/log_entry.cc
@@ -31,6 +31,7 @@ int const LogEntry::TYPE_DEBUG_DECODE = 0x8;
int const LogEntry::TYPE_DEBUG_ENCODE = 0x10;
int const LogEntry::TYPE_TIMING = 0x20;
int const LogEntry::TYPE_DEBUG_EMAIL = 0x40;
+int const LogEntry::TYPE_DEBUG_PLAYER = 0x80;
using std::string;
diff --git a/src/lib/log_entry.h b/src/lib/log_entry.h
index 3d6a9f371..50bbf63a0 100644
--- a/src/lib/log_entry.h
+++ b/src/lib/log_entry.h
@@ -35,6 +35,7 @@ public:
static const int TYPE_DEBUG_ENCODE;
static const int TYPE_TIMING;
static const int TYPE_DEBUG_EMAIL;
+ static const int TYPE_DEBUG_PLAYER;
explicit LogEntry (int type);
virtual ~LogEntry () {}