]> git.sesse.net Git - vlc/commitdiff
do not catch VLCException in sample
authorFilippo Carone <littlejohn@videolan.org>
Sun, 9 Mar 2008 11:54:09 +0000 (12:54 +0100)
committerFilippo Carone <littlejohn@videolan.org>
Sun, 9 Mar 2008 11:54:09 +0000 (12:54 +0100)
bindings/java/VLCExample.java

index e679698ee95aa30aeaa7a4bf17d2f3d5f44cd6e0..22bf29ab7ef8392a83be4a153ea84b0192034563 100644 (file)
@@ -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);