diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:15:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-28 01:15:24 +0000 |
| commit | ea81a192a65a03b664dac61de21e06cea7aa97a2 (patch) | |
| tree | f21447aeb9f24320ea6c1c4cb7a05539646bb85a /src/mxf.cc | |
| parent | 75788462338b1b4f464d075465da3cb372c40004 (diff) | |
Purge assert() from src/, at least (not asdcplib).
Diffstat (limited to 'src/mxf.cc')
| -rw-r--r-- | src/mxf.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -29,6 +29,7 @@ #include "util.h" #include "metadata.h" #include "exceptions.h" +#include "dcp_assert.h" #include "compose.hpp" #include <libxml++/nodes/element.h> #include <boost/filesystem.hpp> @@ -79,7 +80,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, Standard standard) } unsigned int c; Kumu::hex2bin (_id.c_str(), writer_info->AssetUUID, Kumu::UUID_Length, &c); - assert (c == Kumu::UUID_Length); + DCP_ASSERT (c == Kumu::UUID_Length); if (_key) { Kumu::GenRandomUUID (writer_info->ContextID); @@ -87,7 +88,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, Standard standard) unsigned int c; Kumu::hex2bin (_key_id.c_str(), writer_info->CryptographicKeyID, Kumu::UUID_Length, &c); - assert (c == Kumu::UUID_Length); + DCP_ASSERT (c == Kumu::UUID_Length); } } @@ -175,6 +176,6 @@ MXF::pkl_type (Standard standard) const case SMPTE: return "application/mxf"; default: - assert (false); + DCP_ASSERT (false); } } |
