Revert "CameraBuf: avoid busy waiting on safe_queue (#20643)"

This reverts commit e7db6f827d41b8c75579ccbfc2db20f93bd3f6c0.

old-commit-hash: 4e03e3738170f0c9cfb7377e4f41d4760b1505d8
This commit is contained in:
Adeeb Shihadeh
2021-04-11 17:56:38 -07:00
parent 8daa2f45c8
commit d339348895
+1 -1
View File
@@ -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");