From 08e228e290502f64b095cafe94c876609b2b285d Mon Sep 17 00:00:00 2001 From: Filippo Carone Date: Wed, 1 Nov 2006 11:25:05 +0000 Subject: [PATCH] setSize native function signature fixed --- bindings/java/VLCExample.java | 6 +++++- bindings/java/src/video-jni.cc | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bindings/java/VLCExample.java b/bindings/java/VLCExample.java index c45aa2fae5..5660a4700c 100644 --- a/bindings/java/VLCExample.java +++ b/bindings/java/VLCExample.java @@ -46,10 +46,14 @@ public class VLCExample jvlc.video.setFullscreen(true); Thread.sleep(3000); System.out.println("real size."); - jvlc.video.setFullscreen(false); + jvlc.video.setFullscreen(false); System.out.print("Taking snapshot... "); jvlc.video.getSnapshot( System.getProperty( "user.dir" ) + "/snap.png"); System.out.println("taken. (see " + System.getProperty( "user.dir" ) + "/snap.png )"); + Thread.sleep(2000); + System.out.println("Resizing to 300x300"); + jvlc.video.setSize(300, 300); + } System.out.print("Muting..."); jvlc.audio.setMute(true); diff --git a/bindings/java/src/video-jni.cc b/bindings/java/src/video-jni.cc index e14fbf670c..0700d8ed53 100644 --- a/bindings/java/src/video-jni.cc +++ b/bindings/java/src/video-jni.cc @@ -221,7 +221,8 @@ JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1reparent (JNIEnv *env, job awt.FreeDrawingSurface(ds); } -JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1setSize__II (JNIEnv *env, jobject _this, jint width, jint height) + +JNIEXPORT void JNICALL Java_org_videolan_jvlc_Video__1setSize (JNIEnv *env, jobject _this, jint width, jint height) { INIT_FUNCTION ; -- 2.39.5