summaryrefslogtreecommitdiff
path: root/src/AS_02_IAB.cpp
diff options
context:
space:
mode:
authormilla <marc.illa@dolby.com>2021-05-28 11:20:35 +0200
committermilla <marc.illa@dolby.com>2021-06-03 14:27:10 +0200
commit53b8c01b9622058d1823cb352db6d8dd8787c6b6 (patch)
tree7ccf79c10dd38281f626d6d1f97e4188e82fac0e /src/AS_02_IAB.cpp
parentf9d7fbc33aa571c547d916b145712469efd9f4b8 (diff)
Add logs in AS_02_IAB
Diffstat (limited to 'src/AS_02_IAB.cpp')
-rw-r--r--src/AS_02_IAB.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp
index aa551d9..a28ed57 100644
--- a/src/AS_02_IAB.cpp
+++ b/src/AS_02_IAB.cpp
@@ -378,18 +378,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);
}
@@ -399,6 +398,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);
}