Merge "Fix the memory leak during high speed recording"
This commit is contained in:
@@ -2228,6 +2228,12 @@ public class CameraDeviceImpl extends CameraDevice
|
|||||||
} else {
|
} else {
|
||||||
List<CaptureResult> partialResults =
|
List<CaptureResult> partialResults =
|
||||||
mFrameNumberTracker.popPartialResults(frameNumber);
|
mFrameNumberTracker.popPartialResults(frameNumber);
|
||||||
|
if (mBatchOutputMap.containsKey(requestId)) {
|
||||||
|
int requestCount = mBatchOutputMap.get(requestId);
|
||||||
|
for (int i = 1; i < requestCount; i++) {
|
||||||
|
mFrameNumberTracker.popPartialResults(frameNumber - (requestCount - i));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final long sensorTimestamp =
|
final long sensorTimestamp =
|
||||||
result.get(CaptureResult.SENSOR_TIMESTAMP);
|
result.get(CaptureResult.SENSOR_TIMESTAMP);
|
||||||
|
|||||||
Reference in New Issue
Block a user