diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-06-08 23:25:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-06-08 23:25:45 +0200 |
| commit | 50c4f047db0f4e7f4f2fb655af39ec40ae850a96 (patch) | |
| tree | 39ca975e1d4f13830c8a0322eb2c92df072b5ae4 | |
| parent | 2d1dfc2684210febc75399f63e6958da412dd6d3 (diff) | |
Don't assert here as it happens when the disk is full (DoM #2825).v1.0.2
| -rwxr-xr-x | src/KLV.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/KLV.cpp b/src/KLV.cpp index c29eb8c..2f8fda8 100755 --- a/src/KLV.cpp +++ b/src/KLV.cpp @@ -321,7 +321,9 @@ ASDCP::KLVFilePacket::WriteKLToFile(Kumu::FileWriter& Writer, const UL& label, u ui32_t write_count; Writer.Write(buffer, kl_length, &write_count); - assert(write_count == kl_length); + if (write_count != kl_length) + return RESULT_FAIL; + return RESULT_OK; } |
