From 2795ab2e05fcd27a56ddb08ecbbc6af5c3bf983a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 10 Sep 2025 20:44:52 +0200 Subject: Pass disk full / too many open files errors up to DoM. --- src/smpte_text_asset.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/smpte_text_asset.cc') diff --git a/src/smpte_text_asset.cc b/src/smpte_text_asset.cc index 1e87474a..02ea9a16 100644 --- a/src/smpte_text_asset.cc +++ b/src/smpte_text_asset.cc @@ -466,7 +466,7 @@ SMPTETextAsset::write(boost::filesystem::path p) const r = writer.WriteTimedTextResource (*_raw_xml, enc.context(), enc.hmac()); if (ASDCP_FAILURE (r)) { - boost::throw_exception (MXFFileError ("could not write XML to timed text resource", p.string(), r)); + throw_from_asdcplib(r, p, MXFFileError("could not write XML to timed text resource", p.string(), r)); } /* Font payload */ @@ -483,7 +483,7 @@ SMPTETextAsset::write(boost::filesystem::path p) const buffer.Size (j->data.size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE(r)) { - boost::throw_exception (MXFFileError ("could not write font to timed text resource", p.string(), r)); + throw_from_asdcplib(r, p, MXFFileError("could not write font to timed text resource", p.string(), r)); } } } @@ -497,7 +497,7 @@ SMPTETextAsset::write(boost::filesystem::path p) const buffer.Size (si->png_image().size()); r = writer.WriteAncillaryResource (buffer, enc.context(), enc.hmac()); if (ASDCP_FAILURE(r)) { - boost::throw_exception (MXFFileError ("could not write PNG data to timed text resource", p.string(), r)); + throw_from_asdcplib(r, p, MXFFileError("could not write PNG data to timed text resource", p.string(), r)); } } } -- cgit v1.2.3