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.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/exceptions.h') diff --git a/src/exceptions.h b/src/exceptions.h index 4c54ac78..65271c16 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -222,6 +222,12 @@ public: CertificateChainError (std::string message); }; +class MissingSubtitleImageError : public std::runtime_error +{ +public: + MissingSubtitleImageError (std::string id); +}; + } #endif -- cgit v1.2.3