Missing initialisation of _fps; fix nonfunctional GUI server log.
authorCarl Hetherington <cth@carlh.net>
Tue, 12 Feb 2019 22:27:10 +0000 (22:27 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 12 Feb 2019 22:27:10 +0000 (22:27 +0000)
src/tools/dcpomatic_server.cc

index 727983b..dc640ff 100644 (file)
@@ -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));