summaryrefslogtreecommitdiff
path: root/src/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-15 23:16:00 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-15 23:16:00 +0000
commit318ed7eb3472cab3f05c7bc067126ca367db75d4 (patch)
treefbb7a6e541465c9d2a83e75c7859d09b5247ef00 /src/exceptions.h
parent73e2962cef1a003e26e7cc88df032743b3a83e46 (diff)
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.
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h6
1 files changed, 6 insertions, 0 deletions
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