Fix path loads on linux

This commit is contained in:
Banks Troutman
2019-11-02 04:04:19 -04:00
parent 1e43547635
commit cb733aa19e
2 changed files with 4 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ public class Camera {
path = usbCamInfo.path;
} else {
var truePath = Arrays.stream(usbCamInfo.otherPaths).filter(x -> x.contains("/dev/v4l/by-path")).findFirst();
path = truePath.isPresent() ? truePath.toString() : null;
path = truePath.orElse(null);
}
streamDivisor = divisor;