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

Commit 563d60e0 authored by Chien-Yu Chen's avatar Chien-Yu Chen Committed by Android (Google) Code Review
Browse files

Merge "Camera2: Handle getting input surface failures" into mnc-dev

parents 0f70c415 c58a602a
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;