Camera: Fix race for onCaptureBufferLost callback (take 2)
The callback holder was removed when the capture sequence is completed, which is too soon because the buffer loss callback could potentially arrives later than the capture sequence completion. Defer the deletion of the callback holder to when the native inflight request is removed, which takes into consideration of error notifications. Test: Camera CTS Bug: 155353799 Change-Id: I56b9bfbe182ba6fc0ec2cb543fc32774ed3f6f1a
Loading
Please register or sign in to comment