summaryrefslogtreecommitdiff
path: root/src/AS_02_IAB.cpp
diff options
context:
space:
mode:
authorJohn Hurst <jhurst@cinecert.com>2021-08-26 20:29:58 -0700
committerGitHub <noreply@github.com>2021-08-26 20:29:58 -0700
commit8bf9afd450ff50f0fdcdd7d8d9d78cb8b81f001b (patch)
tree68e832e75cca68005d006fdb1439f2e4fe94cfab /src/AS_02_IAB.cpp
parentf9d7fbc33aa571c547d916b145712469efd9f4b8 (diff)
parent8cf0d6750ee17cb494fc62e2eabcbb39a67eebe1 (diff)
Merge pull request #4 from DolbyLaboratories/dolby/atmos_storage/asdcplib_integration/throw_if_not_running
Merge dolby/atmos_storage/asdcplib_integration/dolby/atmos_storage/asdcplib_integration/throw_if_not_running (contains also km logs) to master
Diffstat (limited to 'src/AS_02_IAB.cpp')
-rw-r--r--src/AS_02_IAB.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp
index aa551d9..c25f7bf 100644
--- a/src/AS_02_IAB.cpp
+++ b/src/AS_02_IAB.cpp
@@ -89,6 +89,7 @@ AS_02::IAB::MXFWriter::OpenWrite(
/* are we already running */
if (this->m_State != ST_BEGIN) {
+ KM_RESULT_STATE_HERE();
return Kumu::RESULT_STATE;
}
@@ -271,6 +272,11 @@ AS_02::IAB::MXFWriter::Finalize() {
if (this->m_State == ST_BEGIN) {
return Kumu::RESULT_INIT;
}
+ if (this->m_State != ST_RUNNING) {
+ KM_RESULT_STATE_HERE();
+ return RESULT_STATE;
+ }
+
Result_t result = RESULT_OK;
@@ -365,6 +371,7 @@ AS_02::IAB::MXFReader::OpenRead(const std::string& filename) {
/* are we already running */
if (this->m_State != ST_READER_BEGIN) {
+ KM_RESULT_STATE_HERE();
return Kumu::RESULT_STATE;
}