From 318ed7eb3472cab3f05c7bc067126ca367db75d4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 15 Mar 2019 23:16:00 +0000 Subject: Check that all image data is present after loading a SMPTE subtitle asset. If we load SMPTE subtitles from a XML file try to load PNG data from the same directory; this feels like a hack. --- src/exceptions.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/exceptions.cc') diff --git a/src/exceptions.cc b/src/exceptions.cc index e9cdcef1..7516d085 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -110,7 +110,7 @@ KDMFormatError::KDMFormatError (std::string message) } -CertificateChainError::CertificateChainError (std::string message) +CertificateChainError::CertificateChainError (string message) : runtime_error (message) { @@ -123,3 +123,9 @@ DCPReadError::DCPReadError (string message, string detail) { } + +MissingSubtitleImageError::MissingSubtitleImageError (string id) + : runtime_error (String::compose("Could not load image for subtitle %1", id)) +{ + +} -- cgit v1.2.3