summaryrefslogtreecommitdiff
path: root/src/android/camera_hal_manager.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-06-03 22:14:37 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-06-08 17:11:34 +0900
commit4ed996990dba907c8916ccf2e3b08f9c4988b641 (patch)
tree55f7fc5f5671c2f07fa96044bd12eb5b3902931f /src/android/camera_hal_manager.cpp
parentd072fd6e07487e20cbe4d781999e5c025702a091 (diff)
v4l2: v4l2_camera_proxy: Acquire only one buffer semaphore on VIDIOC_DQBUF
We use a semaphore to atomically keep track of how many buffers are available for dequeueing. The check for how to acquire the semaphore was incorrect, leading to a double acquire upon a successful nonblocking acquire. Fix this. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/android/camera_hal_manager.cpp')
0 files changed, 0 insertions, 0 deletions