Merge master into direct-mxf.
[dcpomatic.git] / src / lib / config.cc
index 307b9684414359ffb823a937f3febc515711db84..c165859b01bd25b3d7e1d768c86f8bca71af8c85 100644 (file)
@@ -90,6 +90,8 @@ Config::Config ()
                } else if (k == "sound_processor") {
                        _sound_processor = SoundProcessor::from_id (v);
                }
+
+               _default_dci_metadata.read (k, v);
        }
 }
 
@@ -136,7 +138,9 @@ Config::write () const
        f << "tms_path " << _tms_path << "\n";
        f << "tms_user " << _tms_user << "\n";
        f << "tms_password " << _tms_password << "\n";
-       f << "sound_processor " << _sound_processor->id ();
+       f << "sound_processor " << _sound_processor->id () << "\n";
+
+       _default_dci_metadata.write (f);
 }
 
 string