Vector devices = (Vector) CaptureDeviceManager.getDeviceList(null).clone();
Enumeration enum = devices.elements();
while (enum.hasMoreElements()) {
CaptureDeviceInfo cdi = (CaptureDeviceInfo) enum.nextElement();
String name = cdi.getName();
if (name.startsWith("v4l:"))
CaptureDeviceManager.removeDevice(cdi);
}
for (int i = 0; i < 10; i++) {
autoDetect(i);
}