Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9cf51a7c authored by Dan Stoza's avatar Dan Stoza
Browse files

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
parent 3bea5547
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;