+ set_defaults ();
+}
+
+void
+Config::set_defaults ()
+{
+ _num_local_encoding_threads = max (2U, boost::thread::hardware_concurrency ());
+ _server_port_base = 6192;
+ _use_any_servers = true;
+ _servers.clear ();
+ _only_servers_encode = false;
+ _tms_protocol = PROTOCOL_SCP;
+ _tms_ip = "";
+ _tms_path = ".";
+ _tms_user = "";
+ _tms_password = "";
+ _cinema_sound_processor = CinemaSoundProcessor::from_id (N_("dolby_cp750"));
+ _allow_any_dcp_frame_rate = false;
+ _language = optional<string> ();
+ _default_still_length = 10;
+ _default_container = Ratio::from_id ("185");
+ _default_dcp_content_type = DCPContentType::from_isdcf_name ("FTR");
+ _default_dcp_audio_channels = 6;
+ _default_j2k_bandwidth = 100000000;
+ _default_audio_delay = 0;
+ _default_interop = false;
+ _mail_server = "";
+ _mail_port = 25;
+ _mail_user = "";
+ _mail_password = "";
+ _kdm_from = "";
+ _kdm_cc.clear ();
+ _kdm_bcc = "";
+ _check_for_updates = false;
+ _check_for_test_updates = false;
+ _maximum_j2k_bandwidth = 250000000;
+ _log_types = LogEntry::TYPE_GENERAL | LogEntry::TYPE_WARNING | LogEntry::TYPE_ERROR;
+ _analyse_ebur128 = true;
+ _automatic_audio_analysis = false;
+#ifdef DCPOMATIC_WINDOWS
+ _win32_console = false;
+#endif
+ _cinemas_file = path ("cinemas.xml");
+ _show_hints_before_make_dcp = true;
+ _kdm_filename_format = KDMNameFormat ("KDM %f %c %s");
+
+ _allowed_dcp_frame_rates.clear ();