summaryrefslogtreecommitdiffstats
path: root/camera/BufferSourceAdapter.cpp
diff options
context:
space:
mode:
authorEmilian Peev <epeev@mm-sol.com>2012-09-11 19:19:38 +0300
committerDaniel Levin <dendy@ti.com>2012-11-26 20:05:28 +0200
commit0d138066844dfb381c0504f6a20ecd3805670da6 (patch)
treedd87b61d410d4e1acbf5160b78b4d9147991ad77 /camera/BufferSourceAdapter.cpp
parent04981ebe2b03ae13b3a0e1757917f2c5b9ac91db (diff)
downloadhardware_ti_omap4-0d138066844dfb381c0504f6a20ecd3805670da6.tar.gz
hardware_ti_omap4-0d138066844dfb381c0504f6a20ecd3805670da6.tar.bz2
hardware_ti_omap4-0d138066844dfb381c0504f6a20ecd3805670da6.zip
CameraHal: Check return frames count before waiting on condition
- The Thread responsible for retrieving free buffers from the tapout is possible to miss some incoming signals and wait while buffers are available in the ST. Solution is to count all outgoing buffers and not wait on the condition when buffers are available. Change-Id: I31526dd334a08f52f0c6069cea847ae14e2cffbc Signed-off-by: Emilian Peev <epeev@mm-sol.com> Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'camera/BufferSourceAdapter.cpp')
-rw-r--r--camera/BufferSourceAdapter.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp
index 036ce72..ba517a8 100644
--- a/camera/BufferSourceAdapter.cpp
+++ b/camera/BufferSourceAdapter.cpp
@@ -904,9 +904,6 @@ void BufferSourceAdapter::handleFrameCallback(CameraFrame* frame)
}
mFramesWithCameraAdapterMap.removeItem((buffer_handle_t *) frame->mBuffer->opaque);
-
- // signal return frame thread that it can dequeue a buffer now
- mReturnFrame->signal();
}