We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f480fb8 + 2ddbf1b commit 1c30e16Copy full SHA for 1c30e16
1 file changed
libcamera/src/camera.rs
@@ -679,12 +679,13 @@ impl<'d> ActiveCamera<'d> {
679
let ptr = req.ptr.as_ptr();
680
// Keep the request alive locally until we know queuing succeeded.
681
let mut pending = Some(req);
682
+ let mut state = self.state.lock().unwrap();
683
let ret = unsafe { libcamera_camera_queue_request(self.ptr.as_ptr(), ptr) };
684
685
if ret < 0 {
686
Err((pending.take().unwrap(), io::Error::from_raw_os_error(-ret)))
687
} else {
- self.state.lock().unwrap().requests.insert(ptr, pending.take().unwrap());
688
+ state.requests.insert(ptr, pending.take().unwrap());
689
Ok(())
690
}
691
0 commit comments