mirror of https://github.com/odrling/Aegisub
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.
This commit is contained in:
parent
93ceb59b0f
commit
36549ff724
|
@ -0,0 +1,20 @@
|
||||||
|
#include <libaegisub/exception.h>
|
||||||
|
|
||||||
|
|
||||||
|
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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue