]> git.sesse.net Git - vlc/commitdiff
setSize native function signature fixed
authorFilippo Carone <littlejohn@videolan.org>
Wed, 1 Nov 2006 11:25:05 +0000 (11:25 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Wed, 1 Nov 2006 11:25:05 +0000 (11:25 +0000)
bindings/java/VLCExample.java
bindings/java/src/video-jni.cc

index c45aa2fae5c3567362a14f9c4e5fbc78f5b678b1..5660a4700cd1b858ea2afc4136e4df478802cc10 100644 (file)
@@ -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);
index e14fbf670c42b56483bae9085cc648c3375a09c8..0700d8ed53009ecd438495774e2a9a654b263bbe 100644 (file)
@@ -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 ;