diff options
| author | milla <marc.illa@dolby.com> | 2021-05-27 12:17:53 +0200 |
|---|---|---|
| committer | milla <marc.illa@dolby.com> | 2021-06-03 14:17:09 +0200 |
| commit | d70b516b0ab5853984621237f3c4d9c372a62636 (patch) | |
| tree | 62db19159558e343dcb684ecc7cf35c1bb96d876 /src/AS_02_IAB.cpp | |
| parent | f9d7fbc33aa571c547d916b145712469efd9f4b8 (diff) | |
If when closing the state is not 'running', throw error as it means no frame has been written.
Diffstat (limited to 'src/AS_02_IAB.cpp')
| -rw-r--r-- | src/AS_02_IAB.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/AS_02_IAB.cpp b/src/AS_02_IAB.cpp index aa551d9..732ef08 100644 --- a/src/AS_02_IAB.cpp +++ b/src/AS_02_IAB.cpp @@ -271,6 +271,11 @@ AS_02::IAB::MXFWriter::Finalize() { if (this->m_State == ST_BEGIN) { return Kumu::RESULT_INIT; } + if (this->m_State != ST_RUNNING) + { + return RESULT_STATE; + } + Result_t result = RESULT_OK; |
