CameraBuf::acquire : release on failure (#19935)

This commit is contained in:
Dean Lee
2021-01-27 19:08:38 +08:00
committed by GitHub
parent 7408569c1b
commit 064bcbe80b
@@ -133,6 +133,7 @@ bool CameraBuf::acquire() {
const FrameMetadata &frame_data = camera_bufs_metadata[cur_buf_idx];
if (frame_data.frame_id == -1) {
LOGE("no frame data? wtf");
release();
return false;
}