diff options
Diffstat (limited to 'avmedia/source/vlc/wrapper/Common.cxx')
-rw-r--r-- | avmedia/source/vlc/wrapper/Common.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/avmedia/source/vlc/wrapper/Common.cxx b/avmedia/source/vlc/wrapper/Common.cxx index a85103845ae9..1ed5256f1755 100644 --- a/avmedia/source/vlc/wrapper/Common.cxx +++ b/avmedia/source/vlc/wrapper/Common.cxx @@ -12,6 +12,7 @@ namespace { const char* ( *libvlc_get_version ) (void); + char * ( * libvlc_errmsg ) (void); } namespace avmedia @@ -24,7 +25,8 @@ bool Common::LoadSymbols() { ApiMap VLC_COMMON_API[] = { - SYM_MAP( libvlc_get_version ) + SYM_MAP( libvlc_get_version ), + SYM_MAP( libvlc_errmsg ) }; return InitApiMap( VLC_COMMON_API ); @@ -34,6 +36,11 @@ const char* Common::Version() { return libvlc_get_version(); } + +const char* Common::LastErrorMessage() +{ + return libvlc_errmsg(); +} } } }
\ No newline at end of file |