OSDN Git Service

ProCamera: Fix waitForFrameBuffer not handling multiple outstanding frames
authorIgor Murashkin <iam@google.com>
Wed, 20 Feb 2013 21:36:17 +0000 (13:36 -0800)
committerIgor Murashkin <iam@google.com>
Fri, 22 Feb 2013 18:50:15 +0000 (10:50 -0800)
commit94a90a43b2a9f83b3a4a4a59247b74ad50336860
tree240c0a147b8856320274dc99d8bbad2937ea7905
parent687f26c7bd7ece88cad8d51fc47be7ab1600af9d
ProCamera: Fix waitForFrameBuffer not handling multiple outstanding frames

If the CpuConsumer triggered multiple onFrameAvailable callbacks in between
a single waitForFrameBuffer call, the old code would only handle 1 callback.

This meant on two subsequent waitForFrameBuffer calls the second would always
timeout when two buffers were already available to be unlocked.

Bug: 8238112
Change-Id: Ibefca35005ac5c408e5ada97ec4a4344a9e3e497
camera/ProCamera.cpp
camera/tests/ProCameraTests.cpp
include/camera/ProCamera.h