fix typo that broke all the builds

Bug: 7584338
Change-Id: Ieb8c27a544ac583af9aa1e0376e33a673d2d9673
This commit is contained in:
Mathias Agopian 2012-11-19 16:50:24 -08:00
parent 3e095b2515
commit 764c197c6f

View File

@ -314,12 +314,9 @@ status_t BufferQueue::dequeueBuffer(int *outBuf, sp<Fence>& outFence,
* the consumer may still have pending reads of the
* buffers in flight.
*/
if (found >= 0) {
bool isOlder = mSlots[i].mFrameNumber <
mSlots[found].mFrameNumber;
if (isOlder) {
found = i;
}
if ((found < 0) ||
mSlots[i].mFrameNumber < mSlots[found].mFrameNumber) {
found = i;
}
}
}