am 10665f4b: Merge "Camera2: Fix a potential race condition in the readout thread: DO NOT MERGE" into jb-mr1-aah-dev
* commit '10665f4b0c5dc94ce7cceaa1fd60a8c29b384114': Camera2: Fix a potential race condition in the readout thread: DO NOT MERGE
This commit is contained in:
@@ -1136,6 +1136,7 @@ void EmulatedFakeCamera2::ReadoutThread::setNextOperation(
|
||||
camera_metadata_t *request,
|
||||
Buffers *buffers) {
|
||||
Mutex::Autolock lock(mInputMutex);
|
||||
Mutex::Autolock iLock(mInternalsMutex);
|
||||
if ( !readyForNextCapture() ) {
|
||||
ALOGE("In flight queue full, dropping captures");
|
||||
mParent->signalError();
|
||||
|
||||
Reference in New Issue
Block a user