mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 20:32:09 +08:00
CameraBuf::acquire : release on failure (#19935)
old-commit-hash: 064bcbe80b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user