am 563d60e0: Merge "Camera2: Handle getting input surface failures" into mnc-dev
* commit '563d60e03f8d5961e5578fca66092bd6b8d5496e': Camera2: Handle getting input surface failures
This commit is contained in:
@@ -537,12 +537,16 @@ public class CameraDeviceImpl extends CameraDevice {
|
||||
CameraAccessException pendingException = null;
|
||||
Surface input = null;
|
||||
try {
|
||||
// configure streams and then block until IDLE
|
||||
// configure streams and then block until IDLE
|
||||
configureSuccess = configureStreamsChecked(inputConfig, outputConfigurations,
|
||||
isConstrainedHighSpeed);
|
||||
if (inputConfig != null) {
|
||||
if (configureSuccess == true && inputConfig != null) {
|
||||
input = new Surface();
|
||||
mRemoteDevice.getInputSurface(/*out*/input);
|
||||
try {
|
||||
mRemoteDevice.getInputSurface(/*out*/input);
|
||||
} catch (CameraRuntimeException e) {
|
||||
e.asChecked();
|
||||
}
|
||||
}
|
||||
} catch (CameraAccessException e) {
|
||||
configureSuccess = false;
|
||||
|
||||
Reference in New Issue
Block a user