From 0d138066844dfb381c0504f6a20ecd3805670da6 Mon Sep 17 00:00:00 2001 From: Emilian Peev Date: Tue, 11 Sep 2012 19:19:38 +0300 Subject: 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 Signed-off-by: Vladimir Petrov --- camera/BufferSourceAdapter.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'camera/BufferSourceAdapter.cpp') 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(); } -- cgit v1.2.3