From 36549ff724adce977cd9167b9d7f0ff61d58bc62 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Thu, 3 Feb 2011 15:48:18 +0000 Subject: [PATCH] Add media.h -- I'm not sure if this will be the perm name, it currently holds exception definitions. Originally committed to SVN as r5276. --- aegisub/libaegisub/include/libaegisub/media.h | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 aegisub/libaegisub/include/libaegisub/media.h diff --git a/aegisub/libaegisub/include/libaegisub/media.h b/aegisub/libaegisub/include/libaegisub/media.h new file mode 100644 index 000000000..580489da5 --- /dev/null +++ b/aegisub/libaegisub/include/libaegisub/media.h @@ -0,0 +1,20 @@ +#include + + +DEFINE_BASE_EXCEPTION_NOINNER(AudioProviderError, agi::Exception); +DEFINE_SIMPLE_EXCEPTION_NOINNER(AudioOpenError, AudioProviderError, "audio/open/failed"); + +/// Error of some sort occurred while decoding a frame +DEFINE_SIMPLE_EXCEPTION_NOINNER(AudioDecodeError, AudioProviderError, "audio/error"); + + +DEFINE_BASE_EXCEPTION_NOINNER(VideoProviderError, agi::Exception); +/// File could be opened, but is not a supported format +DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoNotSupported, VideoProviderError, "video/open/notsupported"); +/// File appears to be a supported format, but could not be opened +DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoOpenError, VideoProviderError, "video/open/failed"); + +/// Error of some sort occurred while decoding a frame +DEFINE_SIMPLE_EXCEPTION_NOINNER(VideoDecodeError, VideoProviderError, "video/error"); + +