mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
Revert "CameraBuf: avoid busy waiting on safe_queue (#20643)"
This reverts commit e7db6f827d41b8c75579ccbfc2db20f93bd3f6c0. old-commit-hash: 4e03e3738170f0c9cfb7377e4f41d4760b1505d8
This commit is contained in:
@@ -105,7 +105,7 @@ CameraBuf::~CameraBuf() {
|
||||
}
|
||||
|
||||
bool CameraBuf::acquire() {
|
||||
if (!safe_queue.try_pop(cur_buf_idx, 50)) return false;
|
||||
if (!safe_queue.try_pop(cur_buf_idx, 1)) return false;
|
||||
|
||||
if (camera_bufs_metadata[cur_buf_idx].frame_id == -1) {
|
||||
LOGE("no frame data? wtf");
|
||||
|
||||
Reference in New Issue
Block a user