From: Carl Hetherington Date: Thu, 1 Oct 2015 14:04:05 +0000 (+0100) Subject: Fix erroneous optional dereference. X-Git-Tag: v2.3.13~3^2~2 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=765f90586c498860aa687e2b0cd6cedf1e0b1bf0 Fix erroneous optional dereference. --- diff --git a/src/lib/config.cc b/src/lib/config.cc index a51c775a3..64d794b36 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -232,7 +232,7 @@ Config::read () _check_for_test_updates = f.optional_bool_child("CheckForTestUpdates").get_value_or (false); _maximum_j2k_bandwidth = f.optional_number_child ("MaximumJ2KBandwidth").get_value_or (250000000); - _allow_any_dcp_frame_rate = f.optional_bool_child ("AllowAnyDCPFrameRate"); + _allow_any_dcp_frame_rate = f.optional_bool_child ("AllowAnyDCPFrameRate").get_value_or (false); _log_types = f.optional_number_child ("LogTypes").get_value_or (Log::TYPE_GENERAL | Log::TYPE_WARNING | Log::TYPE_ERROR); _automatic_audio_analysis = f.optional_bool_child ("AutomaticAudioAnalysis").get_value_or (false);