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

old-commit-hash: 064bcbe80b
This commit is contained in:
Dean Lee
2021-01-27 19:08:38 +08:00
committed by GitHub
parent 2ebacdc364
commit 8dfd6dce43
@@ -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;
}