Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63eeeda authored by Chien-Yu Chen's avatar Chien-Yu Chen Committed by Android Git Automerger
Browse files

am 760d9082: am 563d60e0: Merge "Camera2: Handle getting input surface failures" into mnc-dev

* commit '760d9082':
  Camera2: Handle getting input surface failures
parents 09a61927 760d9082
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -540,9 +540,13 @@ public class CameraDeviceImpl extends CameraDevice {
                // configure streams and then block until IDLE
                configureSuccess = configureStreamsChecked(inputConfig, outputConfigurations,
                        isConstrainedHighSpeed);
                if (inputConfig != null) {
                if (configureSuccess == true && inputConfig != null) {
                    input = new Surface();
                    try {
                        mRemoteDevice.getInputSurface(/*out*/input);
                    } catch (CameraRuntimeException e) {
                        e.asChecked();
                    }
                }
            } catch (CameraAccessException e) {
                configureSuccess = false;