From 9cf51a7c86717cd33d0717c48d6acece9caff3b3 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 13 Mar 2015 15:44:59 -0700 Subject: [PATCH] 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 --- libs/gui/BufferQueueConsumer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gui/BufferQueueConsumer.cpp b/libs/gui/BufferQueueConsumer.cpp index be4bec0e7..821a7441c 100644 --- a/libs/gui/BufferQueueConsumer.cpp +++ b/libs/gui/BufferQueueConsumer.cpp @@ -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;