diff options
Diffstat (limited to 'src/android/camera_proxy.cpp')
-rw-r--r-- | src/android/camera_proxy.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/android/camera_proxy.cpp b/src/android/camera_proxy.cpp index f0cacac8..3eb2f9fb 100644 --- a/src/android/camera_proxy.cpp +++ b/src/android/camera_proxy.cpp @@ -9,6 +9,8 @@ #include <system/camera_metadata.h> +#include <libcamera/object.h> + #include "log.h" #include "message.h" #include "utils.h" @@ -185,10 +187,6 @@ int CameraProxy::processCaptureRequest(camera3_capture_request_t *request) void CameraProxy::threadRpcCall(ThreadRpc &rpcRequest) { - std::unique_ptr<ThreadRpcMessage> message = - utils::make_unique<ThreadRpcMessage>(); - message->rpc = &rpcRequest; - - cameraDevice_->postMessage(std::move(message)); + cameraDevice_->invokeMethod(&CameraDevice::call, &rpcRequest); rpcRequest.waitDelivery(); } |