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

Commit 62c81b84 authored by Shuzhen Wang's avatar Shuzhen Wang Committed by Android (Google) Code Review
Browse files

Merge "Camera: Don't update frameNumberTracker for physical camera result error" into udc-dev

parents 2019101e a4adaeca
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1397,6 +1397,11 @@ public abstract class CameraCaptureSession implements AutoCloseable {
         * the capture may have been pushed to their respective output
         * streams.</p>
         *
         * <p>If a logical multi-camera fails to generate capture result for one of
         * its physical cameras, this method will be called with a {@link CaptureFailure}
         * for that physical camera. In such cases, as long as the logical camera capture
         * result is valid, {@link #onCaptureCompleted} will still be called.</p>
         *
         * <p>The default implementation of this method does nothing.</p>
         *
         * @param session
+12 −9
Original line number Diff line number Diff line
@@ -1908,6 +1908,8 @@ public class CameraDeviceImpl extends CameraDevice
                Log.v(TAG, String.format("got error frame %d", frameNumber));
            }

            // Do not update frame number tracker for physical camera result error.
            if (errorPhysicalCameraId == null) {
                // Update FrameNumberTracker for every frame during HFR mode.
                if (mBatchOutputMap.containsKey(requestId)) {
                    for (int i = 0; i < mBatchOutputMap.get(requestId); i++) {
@@ -1920,6 +1922,7 @@ public class CameraDeviceImpl extends CameraDevice
                }

                checkAndFireSequenceComplete();
            }

            // Dispatch the failure callback
            final long ident = Binder.clearCallingIdentity();