mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 829420 - [Camera] In GonkNativeWindow::dequeueBuffer, -1 will be used as index to access an Arrary. r=kanru
This commit is contained in:
parent
835938782f
commit
6e9b4d1ac0
@ -225,8 +225,8 @@ int GonkNativeWindow::dequeueBuffer(android_native_buffer_t** buffer)
|
||||
* the consumer may still have pending reads of the
|
||||
* buffers in flight.
|
||||
*/
|
||||
bool isOlder = mSlots[i].mFrameNumber < mSlots[found].mFrameNumber;
|
||||
if (found < 0 || isOlder) {
|
||||
if (found < 0 ||
|
||||
mSlots[i].mFrameNumber < mSlots[found].mFrameNumber) {
|
||||
found = i;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user