diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-09-07 21:49:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-09-07 21:49:36 +0100 |
| commit | 4956be4e16570fa6b6985b11d4d689308343ffbb (patch) | |
| tree | a08208b060fd73392841a68be77fd3639bb67a5e /src/lib/config.cc | |
| parent | 5a0b2926fbc57ecdecc6c9a865c9683224be4ee6 (diff) | |
Use VideoContentScale rather than Ratio for the default scale to.
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index 67abc63c2..878fedaa4 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -64,7 +64,7 @@ Config::Config () , _sound_processor (SoundProcessor::from_id (N_("dolby_cp750"))) , _allow_any_dcp_frame_rate (false) , _default_still_length (10) - , _default_scale (Ratio::from_id ("185")) + , _default_scale (VideoContentScale (Ratio::from_id ("185"))) , _default_container (Ratio::from_id ("185")) , _default_dcp_content_type (DCPContentType::from_isdcf_name ("TST")) , _default_j2k_bandwidth (100000000) @@ -137,7 +137,7 @@ Config::read () c = f.optional_string_child ("DefaultScale"); if (c) { - _default_scale = Ratio::from_id (c.get ()); + _default_scale = VideoContentScale::from_id (c.get ()); } c = f.optional_string_child ("DefaultContainer"); @@ -353,9 +353,7 @@ Config::write () const if (_language) { root->add_child("Language")->add_child_text (_language.get()); } - if (_default_scale) { - root->add_child("DefaultScale")->add_child_text (_default_scale->id ()); - } + root->add_child("DefaultScale")->add_child_text (_default_scale.id ()); if (_default_container) { root->add_child("DefaultContainer")->add_child_text (_default_container->id ()); } |
