libgui: Fix infinite recursion

One of the overloads of BufferQueueConsumer::acquireBuffer was
calling itself infinitely instead of calling the other overload.
This fixes that issue.

Bug: 19733425
Change-Id: Iac8425e1241774304a131da2fb9dec6e82922f13
This commit is contained in:
Dan Stoza 2015-03-13 15:44:59 -07:00
parent 3bea554717
commit 9cf51a7c86

View File

@ -182,7 +182,7 @@ status_t BufferQueueConsumer::acquireBuffer(android::BufferItem* outBuffer,
return BAD_VALUE;
}
android::BufferItem item;
BufferItem item;
status_t result = acquireBuffer(&item, expectedPresent);
if (result != NO_ERROR) {
return result;