From: Filippo Carone Date: Wed, 1 Nov 2006 11:25:05 +0000 (+0000) Subject: setSize native function signature fixed X-Git-Tag: 0.9.0-test0~9722 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=08e228e290502f64b095cafe94c876609b2b285d;hp=f4fd4afc62069f34a88d7be3c3b316fea97d73a1;p=vlc setSize native function signature fixed --- 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 ;