_debug("--- Capture devices found:");
Iterator devices = deviceList.iterator();
while (devices.hasNext()) {
CaptureDeviceInfo device = (CaptureDeviceInfo) devices.next();
_debug(device.getName());
}
_debug("---");
}
// Choose the device from the device list.
// FIXME: This isn't crashing gracefully at all.
CaptureDeviceInfo captureDeviceInfo = (CaptureDeviceInfo) deviceList
.get(((IntToken) deviceNumber.getToken()).intValue());
// Create a locator for this device.
MediaLocator locator = captureDeviceInfo.getLocator();
// Attempt to create a processor for this locator.
try {
_processor = Manager.createProcessor(locator);
} catch (Exception ex) {