summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-12 22:27:10 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-12 22:27:10 +0000
commit7203f0065a070902f29536f56ba019e47c57d02d (patch)
treecf56358069bcbfa0e738f0b713fd6a7bda1848c0 /src
parenta27a2c35f0a50d5b03b3731f01f595410fe28ec7 (diff)
Missing initialisation of _fps; fix nonfunctional GUI server log.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_server.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc
index 727983b5a..dc640ff03 100644
--- a/src/tools/dcpomatic_server.cc
+++ b/src/tools/dcpomatic_server.cc
@@ -60,6 +60,9 @@ static unsigned int const log_lines = 32;
class ServerLog : public Log, public Signaller
{
public:
+ ServerLog ()
+ : _fps (0)
+ {}
string get () const {
string a;
@@ -266,6 +269,7 @@ private:
wxInitAllImageHandlers ();
server_log.reset (new ServerLog);
+ server_log->set_types (LogEntry::TYPE_GENERAL | LogEntry::TYPE_WARNING | LogEntry::TYPE_ERROR);
dcpomatic_log = server_log;
Config::FailedToLoad.connect (boost::bind (&App::config_failed_to_load, this));