Don't crash NativeDriver on other OSs but log an error
This commit is contained in:
parent
bdfdf2453b
commit
1563f8a3b4
|
@ -26,11 +26,16 @@ public class NativeDriver implements WebcamDriver {
|
||||||
} else {
|
} else {
|
||||||
// TODO support at least Linux and Raspberry
|
// TODO support at least Linux and Raspberry
|
||||||
LOG.warn("Unsupported OS {}. No devices will be returned!", os);
|
LOG.warn("Unsupported OS {}. No devices will be returned!", os);
|
||||||
this.driver = new NativeDriver() {
|
this.driver = new WebcamDriver() {
|
||||||
@Override
|
@Override
|
||||||
public List<WebcamDevice> getDevices() {
|
public List<WebcamDevice> getDevices() {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isThreadSafe() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue