]> git.sesse.net Git - vlc/commitdiff
Update snapshot method.
authorPhilippe Morin <phmo95@videolan.org>
Sun, 9 Dec 2007 14:30:57 +0000 (14:30 +0000)
committerPhilippe Morin <phmo95@videolan.org>
Sun, 9 Dec 2007 14:30:57 +0000 (14:30 +0000)
bindings/java/org/videolan/jvlc/Video.java
bindings/java/org/videolan/jvlc/VideoIntf.java

index 8e2af0a4c401846bc98ae56b7864ec4254b19d94..fcb234410e5f9199cad91256a2bb6bc353b8fecb 100644 (file)
@@ -24,7 +24,7 @@ public final class Video implements VideoIntf {
     private native boolean             _getFullscreen();
     private native int                 _getHeight();
     private native int                 _getWidth();
-    private native void                        _getSnapshot(String filename);
+    private native void                        _getSnapshot(String filename,int width,int height);
     private native void                        _destroyVideo();
     private native void                        _reparent(JVLCCanvas component);
     private native void                        _setSize(int width, int height);
@@ -47,8 +47,8 @@ public final class Video implements VideoIntf {
        /* (non-Javadoc)
         * @see org.videolan.jvlc.VideoIntf#getSnapshot(java.lang.String)
         */
-       public void getSnapshot(String filepath) throws VLCException {
-               _getSnapshot( filepath );
+       public void getSnapshot(String filepath,int width,int height) throws VLCException {
+               _getSnapshot( filepath , width, height);
        }
 
        /* (non-Javadoc)
index 11ad03c27a1b2f418a722dacde202c6064cfba5b..0be72c6a70ce4487539d676a3a6b015971abb7a2 100644 (file)
@@ -58,7 +58,7 @@ public interface VideoIntf {
      * If you only give a path, not including the filename, the snapshot will be saved in
      * the specified path using vlc naming conventions. 
      */
-    void       getSnapshot(String filepath) throws VLCException;
+    void       getSnapshot(String filepath,int width,int height) throws VLCException;
     
     
     /**