diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:10:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-19 13:15:34 +0200 |
| commit | 9d8fdd276cd8d708b30d30ffb04279413bdfe080 (patch) | |
| tree | 46b885696ad1709059c3c4e82d3899ea617e6898 | |
| parent | 1fcc2d967b50d0a09a6f4cc2ab47d3d2206911a4 (diff) | |
Fix a whole load of missing setup for AtmosAssets, most notably
the ID.
| -rw-r--r-- | src/atmos_asset.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/atmos_asset.cc b/src/atmos_asset.cc index c4c88568..c31ac2d6 100644 --- a/src/atmos_asset.cc +++ b/src/atmos_asset.cc @@ -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 |
