diff options
| author | John Hurst <jhurst@cinecert.com> | 2021-08-26 20:42:37 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-26 20:42:37 -0700 |
| commit | 1ff08641353a1ff1887f223dc01310cc0167d8fe (patch) | |
| tree | 645d69813d68e7a534679140d5ec4344eab5884f /src/AS_02_IAB.cpp | |
| parent | 579c7de994ebeb804f66370d849be60a902bbefa (diff) | |
| parent | 53b8c01b9622058d1823cb352db6d8dd8787c6b6 (diff) | |
Merge pull request #9 from DolbyLaboratories/dolby/atmos_storage/asdcplib_integration/as_02_iab_logs
Add logs in AS_02_IAB
Diffstat (limited to 'src/AS_02_IAB.cpp')
| -rw-r--r-- | src/AS_02_IAB.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp index 9278381..55283ea 100644 --- a/src/AS_02_IAB.cpp +++ b/src/AS_02_IAB.cpp @@ -396,18 +396,17 @@ AS_02::IAB::MXFReader::OpenRead(const std::string& filename) { result = this->m_Reader->OpenMXFRead(filename); - if (result.Failure()) { - throw Kumu::RuntimeError(result); - } - InterchangeObject* tmp_iobj = 0; - this->m_Reader->m_HeaderPart.GetMDObjectByType( - this->m_Reader->m_Dict->Type(MDD_IABEssenceDescriptor).ul, - &tmp_iobj + if ( ASDCP_SUCCESS(result)){ + this->m_Reader->m_HeaderPart.GetMDObjectByType( + this->m_Reader->m_Dict->Type(MDD_IABEssenceDescriptor).ul, + &tmp_iobj ); + } if (!tmp_iobj) { + DefaultLogSink().Error("IABEssenceDescriptor object not found in IMF/IAB MXF file.\n"); throw Kumu::RuntimeError(Kumu::RESULT_FAIL); } @@ -417,6 +416,7 @@ AS_02::IAB::MXFReader::OpenRead(const std::string& filename) { ); if (!tmp_iobj) { + DefaultLogSink().Error("IABSoundfieldLabelSubDescriptor object not found.\n"); throw Kumu::RuntimeError(Kumu::RESULT_FAIL); } |
