Commit df1e8379 authored by Thomas Guillem's avatar Thomas Guillem

mediacodec: use ExceptionCheck

Convenience function to check for pending exceptions without creating a local
reference to the exception object (that was not released).
parent f9207135
......@@ -156,7 +156,7 @@ static int jstrcmp(JNIEnv* env, jobject str, const char* str2)
static inline bool check_exception(JNIEnv *env)
{
if ((*env)->ExceptionOccurred(env))
if ((*env)->ExceptionCheck(env))
{
(*env)->ExceptionClear(env);
return true;
......
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