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

Commit 3b594bfe authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Release input surface on capture session close

Per the documentation, the input surface of a reprocessable capture
session should be abandoned on the close of a session.

Actually implement this, to avoid unintentional leaks of buffers.

Test: Camera CTS passes
Bug: 38313948
Change-Id: Ia45c39ea925288a5082d6e722ff4b40c55971a37
parent 6e269ec6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -412,6 +412,9 @@ public class CameraCaptureSessionImpl extends CameraCaptureSession
            // If no sequences are pending, fire #onClosed immediately
            mSequenceDrainer.beginDrain();
        }
        if (mInput != null) {
            mInput.release();
        }
    }

    /**