Fix a whole load of missing setup for AtmosAssets, most notably
authorCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 11:10:45 +0000 (13:10 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 19 Jun 2020 11:15:34 +0000 (13:15 +0200)
the ID.

src/atmos_asset.cc

index c4c885681c0638fc42bef33707e6095cec2d7681..c31ac2d65c8374fbfc5ea54c98ae577b6f199d2a 100644 (file)
@@ -80,6 +80,13 @@ AtmosAsset::AtmosAsset (boost::filesystem::path file)
        _atmos_id = id;
 
        _atmos_version = desc.AtmosVersion;
+
+       ASDCP::WriterInfo info;
+       if (ASDCP_FAILURE (reader.FillWriterInfo (info))) {
+               boost::throw_exception (ReadError ("could not read audio MXF information"));
+       }
+
+       _id = read_writer_info (info);
 }
 
 string