[vlc-commits] vout/android: utils: fix wrong cast

Thomas Guillem git at videolan.org
Mon Dec 19 12:06:42 CET 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Dec 15 11:30:15 2016 +0100| [6cd7dc62198e9678d226fd2ca1fea4031a94f739] | committer: Thomas Guillem

vout/android: utils: fix wrong cast

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6cd7dc62198e9678d226fd2ca1fea4031a94f739
---

 modules/video_output/android/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/android/utils.c b/modules/video_output/android/utils.c
index 8a52b94..46646e0 100644
--- a/modules/video_output/android/utils.c
+++ b/modules/video_output/android/utils.c
@@ -389,7 +389,7 @@ const JNINativeMethod jni_callbacks[] = {
 };
 
 static int
-InitJNIFields(JNIEnv *env, vlc_object_t *p_obj, AWindowHandler *p_awh)
+InitJNIFields(JNIEnv *env, vlc_object_t *p_obj, jobject *jobj)
 {
     static vlc_mutex_t lock = VLC_STATIC_MUTEX;
     static int i_init_state = -1;
@@ -415,7 +415,7 @@ InitJNIFields(JNIEnv *env, vlc_object_t *p_obj, AWindowHandler *p_awh)
     CHECK_EXCEPTION("GetMethodID("str")"); \
 } while( 0 )
 
-    clazz = (*env)->GetObjectClass(env, p_awh);
+    clazz = (*env)->GetObjectClass(env, jobj);
     CHECK_EXCEPTION("AndroidNativeWindow clazz");
     GET_METHOD(getVideoSurface, "getVideoSurface", "()Landroid/view/Surface;");
     GET_METHOD(getSubtitlesSurface, "getSubtitlesSurface", "()Landroid/view/Surface;");



More information about the vlc-commits mailing list