mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-16 10:22:07 +08:00
Revert "CameraBuf: avoid busy waiting on safe_queue (#20643)"
This reverts commit e562a69a4d.
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