Skip to content

Commit cc6087c

Browse files
committed
Small fix in parallel buffer access example, refs #599
1 parent abaf107 commit cc6087c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webcam-capture/src/example/java/ParallelGetImageBytesExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ public ByteBuffer awaitAndGet() {
7070
*/
7171
public void ready(ByteBuffer bb) {
7272
try {
73-
exchange(bb, 0, TimeUnit.SECONDS);
73+
exchange(bb, 500, TimeUnit.MILLISECONDS);
7474
} catch (InterruptedException | TimeoutException e) {
75-
throw new IllegalStateException(e);
75+
// do nothing, frame is dropped
7676
}
7777
}
7878

0 commit comments

Comments
 (0)