mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
use play/pause/getState combination in listResolutions() to avoid hangs in OSX and/or Windows. Updated todo notes
This commit is contained in:
@@ -479,7 +479,13 @@ public class Capture extends PImage implements PConstants {
|
||||
testPipeline.addMany(source, sink);
|
||||
Element.linkMany(source, sink);
|
||||
|
||||
// Play/pause sequence (with getState() calls to to make sure
|
||||
// all async operations are done) to trigger the capture momentarily
|
||||
// for the device and obtain its supported resolutions.
|
||||
testPipeline.play();
|
||||
testPipeline.getState();
|
||||
testPipeline.pause();
|
||||
testPipeline.getState();
|
||||
|
||||
ArrayList<String> resolutions = new ArrayList<String>();
|
||||
addResFromSource(resolutions, source);
|
||||
|
||||
Reference in New Issue
Block a user