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 727983b5ac2ba41992e220950f15f0c53827e6b8..dc640ff033964a9b33993dc0571b81bb915b6d2d 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));