diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-01-05 01:29:02 +0200 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-01-12 16:10:37 +0100 |
commit | 6a735f014a4fa1734dbb55ab8ff9404b3d8a9610 (patch) | |
tree | 12b025be9c74bfe4285ad8ab10883bf233826138 /src/v4l2/v4l2_camera_proxy.cpp | |
parent | 3c4b87244352552cce8d7a9c7b97ff85b39b3d58 (diff) |
v4l2: camera_proxy: Call V4L2Camera::getBufferFd() directly
The V4L2Camera::getBufferFd() method doesn't need to run in the camera
thread. Call it directly.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/v4l2/v4l2_camera_proxy.cpp')
-rw-r--r-- | src/v4l2/v4l2_camera_proxy.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/v4l2/v4l2_camera_proxy.cpp b/src/v4l2/v4l2_camera_proxy.cpp index d38500a3..a84405a3 100644 --- a/src/v4l2/v4l2_camera_proxy.cpp +++ b/src/v4l2/v4l2_camera_proxy.cpp @@ -92,8 +92,7 @@ void *V4L2CameraProxy::mmap(void *addr, size_t length, int prot, int flags, return MAP_FAILED; } - FileDescriptor fd = vcam_->invokeMethod(&V4L2Camera::getBufferFd, - ConnectionTypeBlocking, index); + FileDescriptor fd = vcam_->getBufferFd(index); if (!fd.isValid()) { errno = EINVAL; return MAP_FAILED; |