[Android] JNI Vout: remove useless parameters to the LibVLC attachSurface function.

Adrien Maglo git at videolan.org
Fri Nov 8 14:39:15 CET 2013


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Nov  8 14:39:02 2013 +0100| [71746de6817bcacdcec6e8e2721d7498d8155377] | committer: Adrien Maglo

JNI Vout: remove useless parameters to the LibVLC attachSurface function.

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=71746de6817bcacdcec6e8e2721d7498d8155377
---

 vlc-android/jni/vout.c                                              |    2 +-
 vlc-android/src/org/videolan/libvlc/LibVLC.java                     |    2 +-
 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vlc-android/jni/vout.c b/vlc-android/jni/vout.c
index d32ece8..a5ac276 100644
--- a/vlc-android/jni/vout.c
+++ b/vlc-android/jni/vout.c
@@ -67,7 +67,7 @@ void jni_SetAndroidSurfaceSize(int width, int height, int visible_width, int vis
     (*myVm)->DetachCurrentThread (myVm);
 }
 
-void Java_org_videolan_libvlc_LibVLC_attachSurface(JNIEnv *env, jobject thiz, jobject surf, jobject gui, jint width, jint height) {
+void Java_org_videolan_libvlc_LibVLC_attachSurface(JNIEnv *env, jobject thiz, jobject surf, jobject gui) {
     pthread_mutex_lock(&vout_android_lock);
     jclass clz;
     jfieldID fid;
diff --git a/vlc-android/src/org/videolan/libvlc/LibVLC.java b/vlc-android/src/org/videolan/libvlc/LibVLC.java
index 30b023f..61791d2 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVLC.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVLC.java
@@ -72,7 +72,7 @@ public class LibVLC {
 
     /** Check in libVLC already initialized otherwise crash */
     private boolean mIsInitialized = false;
-    public native void attachSurface(Surface surface, IVideoPlayer player, int width, int height);
+    public native void attachSurface(Surface surface, IVideoPlayer player);
 
     public native void detachSurface();
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 4c5dc01..eb97f1a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1258,7 +1258,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
                 Log.d(TAG, "Pixel format is YV12");
             else
                 Log.d(TAG, "Pixel format is other/unknown");
-            mLibVLC.attachSurface(holder.getSurface(), VideoPlayerActivity.this, width, height);
+            mLibVLC.attachSurface(holder.getSurface(), VideoPlayerActivity.this);
         }
 
         @Override



More information about the Android mailing list