[vlc-commits] mediacodec: use ExceptionCheck
Thomas Guillem
git at videolan.org
Thu Nov 12 10:54:06 CET 2015
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 12 10:30:34 2015 +0100| [df1e837991293d2b462ce52ffbe358ef57ac922f] | committer: 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).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df1e837991293d2b462ce52ffbe358ef57ac922f
---
modules/codec/omxil/mediacodec_jni.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/omxil/mediacodec_jni.c b/modules/codec/omxil/mediacodec_jni.c
index 57df988..b30cbb1 100644
--- a/modules/codec/omxil/mediacodec_jni.c
+++ b/modules/codec/omxil/mediacodec_jni.c
@@ -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;
More information about the vlc-commits
mailing list