Kaydet (Commit) 3196e5b7 authored tarafından Minh Ngo's avatar Minh Ngo

Avmedia/VLC: Returns "No error" if there aren't any error.

Change-Id: Ic080cbcef56a82129347bbb4f008d1c36b0a927a
üst c2f9e24e
......@@ -11,6 +11,8 @@
namespace
{
const char AVMEDIA_NO_ERROR[] = "No error";
const char* ( *libvlc_get_version ) (void);
char * ( * libvlc_errmsg ) (void);
}
......@@ -39,7 +41,8 @@ const char* Common::Version()
const char* Common::LastErrorMessage()
{
return libvlc_errmsg();
const char *errorMsg = libvlc_errmsg();
return errorMsg == NULL ? AVMEDIA_NO_ERROR : errorMsg;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment