am 764c197c: fix typo that broke all the builds

* commit '764c197c6fc2bf10b038c33b320a4e95594d52d8':
  fix typo that broke all the builds
This commit is contained in:
Mathias Agopian 2012-11-19 17:04:44 -08:00 committed by Android Git Automerger
commit 594a8773c1

View File

@ -314,15 +314,12 @@ status_t BufferQueue::dequeueBuffer(int *outBuf, sp<Fence>& outFence,
* the consumer may still have pending reads of the * the consumer may still have pending reads of the
* buffers in flight. * buffers in flight.
*/ */
if (found >= 0) { if ((found < 0) ||
bool isOlder = mSlots[i].mFrameNumber < mSlots[i].mFrameNumber < mSlots[found].mFrameNumber) {
mSlots[found].mFrameNumber;
if (isOlder) {
found = i; found = i;
} }
} }
} }
}
// clients are not allowed to dequeue more than one buffer // clients are not allowed to dequeue more than one buffer
// if they didn't set a buffer count. // if they didn't set a buffer count.