[vlc-devel] commit: do not catch VLCException in sample (Filippo Carone )
git version control
git at videolan.org
Sun Mar 9 12:53:55 CET 2008
vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Sun Mar 9 12:54:09 2008 +0100| [78461b33d410dbf95b95050c4c5b32b6c5cacd50]
do not catch VLCException in sample
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=78461b33d410dbf95b95050c4c5b32b6c5cacd50
---
bindings/java/VLCExample.java | 37 +++++++++++++++----------------------
1 files changed, 15 insertions(+), 22 deletions(-)
diff --git a/bindings/java/VLCExample.java b/bindings/java/VLCExample.java
index e679698..22bf29a 100644
--- a/bindings/java/VLCExample.java
+++ b/bindings/java/VLCExample.java
@@ -71,28 +71,21 @@ public class VLCExample
Thread.sleep(100);
}
- try
- {
- Video video = new Video(jvlc);
- System.out.print(video.getWidth(mediaInstance));
- System.out.print("x");
- System.out.println(video.getHeight(mediaInstance));
- System.out.print("Fullscreen... ");
- video.setFullscreen(mediaInstance, true);
- Thread.sleep(3000);
- System.out.println("real size.");
- video.setFullscreen(mediaInstance, false);
- System.out.print("Taking snapshot... ");
- video.getSnapshot(mediaInstance, System.getProperty("user.dir") + "/snap.png", 0, 0);
- System.out.println("taken. (see " + System.getProperty("user.dir") + "/snap.png )");
- Thread.sleep(2000);
- System.out.println("Resizing to 300x300");
- video.setSize(300, 300);
- }
- catch (VLCException e)
- {
- e.printStackTrace();
- }
+ Video video = new Video(jvlc);
+ System.out.print(video.getWidth(mediaInstance));
+ System.out.print("x");
+ System.out.println(video.getHeight(mediaInstance));
+ System.out.print("Fullscreen... ");
+ video.setFullscreen(mediaInstance, true);
+ Thread.sleep(3000);
+ System.out.println("real size.");
+ video.setFullscreen(mediaInstance, false);
+ System.out.print("Taking snapshot... ");
+ video.getSnapshot(mediaInstance, System.getProperty("user.dir") + "/snap.png", 0, 0);
+ System.out.println("taken. (see " + System.getProperty("user.dir") + "/snap.png )");
+ Thread.sleep(2000);
+ System.out.println("Resizing to 300x300");
+ video.setSize(300, 300);
System.out.print("Muting...");
Audio audio = new Audio(jvlc);
More information about the vlc-devel
mailing list