From 50c4f047db0f4e7f4f2fb655af39ec40ae850a96 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 8 Jun 2024 23:25:45 +0200 Subject: Don't assert here as it happens when the disk is full (DoM #2825). --- src/KLV.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/KLV.cpp') 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; } -- cgit v1.2.3