Camera2: Fix a potential race condition in the readout thread: DO NOT MERGE

Change-Id: I12d960debb499795487582655243e951b15947d5
This commit is contained in:
Igor Murashkin
2012-12-07 12:34:20 -08:00
parent 04ff9ec118
commit 74d45ce6f3

View File

@@ -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();