camerad: fix crash during camera re-alignment (#34630)

fix crash during road camera re-alignment
tmp-jenkins-34627^2
Dean Lee 2 months ago committed by GitHub
parent 5bcaca7321
commit 51d21f0113
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      system/camerad/cameras/spectra.cc

@ -259,7 +259,7 @@ int SpectraCamera::clear_req_queue() {
int ret = do_cam_control(m->video0_fd, CAM_REQ_MGR_FLUSH_REQ, &req_mgr_flush_request, sizeof(req_mgr_flush_request)); int ret = do_cam_control(m->video0_fd, CAM_REQ_MGR_FLUSH_REQ, &req_mgr_flush_request, sizeof(req_mgr_flush_request));
LOGD("flushed all req: %d", ret); LOGD("flushed all req: %d", ret);
if (icp_dev_handle) { if (icp_dev_handle > 0) {
struct cam_flush_dev_cmd cmd = { struct cam_flush_dev_cmd cmd = {
.session_handle = session_handle, .session_handle = session_handle,
.dev_handle = icp_dev_handle, .dev_handle = icp_dev_handle,

Loading…
Cancel
Save