summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-06-08 23:25:45 +0200
committerCarl Hetherington <cth@carlh.net>2024-06-08 23:25:45 +0200
commit50c4f047db0f4e7f4f2fb655af39ec40ae850a96 (patch)
tree39ca975e1d4f13830c8a0322eb2c92df072b5ae4
parent2d1dfc2684210febc75399f63e6958da412dd6d3 (diff)
Don't assert here as it happens when the disk is full (DoM #2825).v1.0.2
-rwxr-xr-xsrc/KLV.cpp4
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;
}