diff --git a/examples/Capture/GettingStartedCapture/GettingStartedCapture.pde b/examples/Capture/GettingStartedCapture/GettingStartedCapture.pde index 2bcd924..af86a5a 100644 --- a/examples/Capture/GettingStartedCapture/GettingStartedCapture.pde +++ b/examples/Capture/GettingStartedCapture/GettingStartedCapture.pde @@ -16,7 +16,7 @@ void setup() { if (cameras == null) { println("Failed to retrieve the list of available cameras, will try the default..."); cam = new Capture(this, 640, 480); - } if (cameras.length == 0) { + } else if (cameras.length == 0) { println("There are no cameras available for capture."); exit(); } else { @@ -43,4 +43,4 @@ void draw() { // is faster when just drawing the image without any additional // resizing, transformations, or tint. //set(0, 0, cam); -} \ No newline at end of file +}