From 9d8fdd276cd8d708b30d30ffb04279413bdfe080 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 19 Jun 2020 13:10:45 +0200 Subject: Fix a whole load of missing setup for AtmosAssets, most notably the ID. --- src/atmos_asset.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 -- cgit v1.2.3